Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > c# > may 2006 > threads for sunday may 21

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Net Remoting Timeout
Posted by Sagaert Johan at 5/21/2006 11:34:13 PM
Hi I tried to get around the problem on an un-available remoting server bij using the async methods (BeginInvoke) but noticed that this call is blocking if the remote server is not available. the the client throws an Exception after over 48 seconds, way to long . The async method seems to...more >>

Win32 GDI and paint event
Posted by ehabzaky NO[at]SPAM gmail.com at 5/21/2006 11:19:11 PM
Hi, I'm using some low level Win 32 API for some drawing functions on a picture box. I'm putting the drawing code in a method and call this method from the picture box paint event. The problem is that when the application starts the drawings is appeared instantly on the picture box then it ...more >>

fttphandler
Posted by rony.vainblat NO[at]SPAM gmail.com at 5/21/2006 10:57:14 PM
hi , i am building site that the user can enter by virtual path . for example www.mysite.com/car/bigCars/Mec/default.aspx this path "/car/bigCars/Mec/default.aspx" do not exist . what i what is that my jttphandler will catch the url , and user will surf the site thinking he is actually in tha...more >>

Is something wrong with datagrid.rows.clear()?
Posted by PiotrKolodziej at 5/21/2006 10:56:11 PM
Here's my code. When i try to call it from serialport.DataReceived event i got random errors. One of them is that object reference is not set to an instance of an object : in Application.Run(new Form1()) <- I don;t know even why here. Like program wants to start again. Anyway Rows.Clear() s...more >>

Error 1312 when Mapping drives.
Posted by Tomas Vera at 5/21/2006 10:36:01 PM
Hello All, I have a web application that is required to copy a file from the WebServer to a remote web server (staging server to production server). I've created an application that maps the network drive, then moves a specified file to the remote server. I've imported the SDK API "WNetAdd...more >>

VSTO Outlook AddIn - Toolbar button Event Handler Fires One Time Only
Posted by Joseph Geretz at 5/21/2006 7:51:05 PM
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook launches. I've wired up my event handler to each Menu item and toolbar button. (I use the same Event ...more >>

Locking a database file prior to copying it
Posted by John at 5/21/2006 6:59:14 PM
Hi all, My application updates a sql server 2005 express database prior to copying it with the result being the "in use by another process" and I cannot copy it as a result. I've posted the code that updates the database below. Please could someone let me know how I free up the mdf file pro...more >>

RSA problem I can't seem to decrypt
Posted by smilly at 5/21/2006 5:15:01 PM
I get this error when I try to decrypt the string that is encrypted: I would like to know what the solution is because this should work :-) {"The data to be decrypted exceeds the maximum for this modulus of 128 bytes."} code: // Read public key into a string public const strin...more >>



Another VB to C# Question
Posted by Tina at 5/21/2006 4:59:17 PM
As I continue to convert a large vb.net project to C# is am now seeing that the namespaces are different. I never expected this. For instance in vb I use System.Drawing.Color so I can say red yellow, etc. But in C# Color is not in Drawing! Where is it? Are there any docs on differences...more >>

DataGridView columns
Posted by Paul Cheetham at 5/21/2006 3:18:21 PM
Hi, I have a DataGridView control, and I am using it's datasource property to assign a datatable to it at runtime. The datatable has some columns in it that I don't want to be visible. With the DataGrid control in .Net 1, each Column had a property that allowed it to be bound to a column ...more >>

Nested iterator problem
Posted by Andrew Matthews at 5/21/2006 11:14:48 AM
Hi All, I have an issue that I can't solve with the following (cleaned up) piece of code. What I've seen in the VS 2005 debugger is that the Files iterator is issuing a yield on all of the files below 'dir', but that the loop in main does nothing with them. i.e. if there were 10 files belo...more >>

String Array to XmlNodeList
Posted by Maurice Cosgrave at 5/21/2006 9:10:10 AM
Hi, I was wondering if there was a way to move values from an array into an XmlNodeList? I have the values loaded into a string array from a previous point in the application; now I need to search the XML file for the items in the array and pull out the parent node. To do that I need an Xml...more >>

Displaying Multicolored text in a control
Posted by ChrisUttenreither NO[at]SPAM gmail.com at 5/21/2006 8:31:04 AM
Hello folks. I'm writing a Roguelike game in C#. Fun stuff. The game includes a map that is made entirely of colored ASCII art in a monospace font. I would like to make this map a control in the main form. My first attempt was with RichTextBox. I wanted to set the background to black. A...more >>

C Sharp stx and etx characters visible
Posted by FrankvdHorst NO[at]SPAM gmail.com at 5/21/2006 5:13:35 AM
Hallo, In an application that I'm creating I want to display =E2=98=BB and =E2=99= =A5 in a standard textbox. In this message they are displayed correctly. But when I'm programming in Visual Studio my textbox displays a square. How can i solve this minor problem. PS I tried different fonts i...more >>

XHTML validation problem
Posted by Code Monkey at 5/21/2006 3:59:22 AM
I've got a site using master pages. The problem is that although every supposedly is XHTML, the W3C checker is failing on an image button. The code on the generated web page is: <code> <input type="image" name="ctl00$MainContentHolder$btn_quickSearch" id="ctl00_MainContentHolder_btn_quickSear...more >>

How to convert double to decimal (2 places)
Posted by Jim Stools at 5/21/2006 3:02:21 AM
How do I do this: result needs to be a decimal to 2 places? I get casting problems on the below: double myPrice = 1200.125;double myShares = 354.288; decimal myTotal; myTotal = myPrice * myShares; Thanks, ...more >>

How to limit HttpWebRequest connections?
Posted by Basel at 5/21/2006 2:53:48 AM
Hi All, I'm opening a number of threads, and each thread generates http requests using HttpWebRequest. How to make each thread open only 1 connection ? I tried to set a unique ConnectionGroupName for each thread, but after some time the number of connections exceeds the number of threads (I ...more >>

Ignoring spaces in regular expression matching
Posted by Mark Rae at 5/21/2006 12:00:00 AM
Hi, I'm trying to construct a RegEx pattern which will validate a string so that it can contain: only the numerical characters from 0 to 9 i.e. no decimal points, negative signs, exponentials etc only the 26 letters of the standard Western alphabet in either upper or lower case spaces ...more >>

Cannot implicitly convert type 'double' to 'bool'
Posted by Doug at 5/21/2006 12:00:00 AM
Hi I have a short piece of trial code that compares some input and then produces a message based on the value. However I get a build error that i dont know how to resolve ' Cannot implicitly convert type 'double' to 'bool' The code is double expect = int.Parse(txtInput.Text); if...more >>

overloading
Posted by Doug at 5/21/2006 12:00:00 AM
Hi I am 'returning' to the learning of C# after a change in jobs and I remember that I used to struggle with the defintion, purpose and function of 'overloading'. When I was beginning with C# I never fully understood what overloading was good for. Could someone please provide me with so...more >>

Interop issues
Posted by Varun Bansal at 5/21/2006 12:00:00 AM
Hi, I've written a C# dll and I'm trying to return a "List of structures" to my C++ client application. I'm getting this warning while compiling my C# dll. Warning 1 Type library exporter warning processing 'xyz'. Warning: Type library exporter encountered a generic type instance in a sign...more >>


DevelopmentNow Blog