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# > february 2007 > threads for saturday february 17

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

Equivalent to table-driven code
Posted by Richard Drysdall at 2/17/2007 11:39:31 PM
Hi. In C/C++, I'm used to using a table-driven approach for some problems to avoid large case statements. For example (off the top of my head, may contain syntax errors and error checking excluded): typedef struct { const char *name; unsigned int id; } ANIMALMAPPING; static AN...more >>


StreamReader.close and StreamWriter.close
Posted by Eran.Yasso NO[at]SPAM gmail.com at 2/17/2007 11:30:39 PM
Hi, In the MSDN the sample doesn't use the close() method. But I know that in most languages you do need to use the close() method after reading and writing to a file. from MSDN: public static void Main() { string path = @"c:\temp\MyTest.txt"; try { ...more >>

saving user preferences
Posted by Tal Shachar at 2/17/2007 10:40:00 PM
Hi, I have a windows application that needs to save some user preferences to an xml and to load it on the next application run. Saving the preferences is done per user. I know that there is a way of saving it to some path under "Documents and Settings/UserName/...." , but I don't know the cor...more >>

how to get the System.Drawing.Point of FormStartPosition, e.g. if i want to recenter the form on the screen at some point other then startup.
Posted by dr at 2/17/2007 9:24:50 PM
how to get the System.Drawing.Point of FormStartPosition, e.g. if i want to recenter the form on the screen at some point other then startup. ...more >>

VS2005 loses tabs when pasting
Posted by Paul E Collins at 2/17/2007 9:21:23 PM
In Visual Studio 2005, I copy a block of code with tabs in it, such as: myLabel.Text = "Please wait ..."; progressBar.Value = 0; (In the above, the two = signs are aligned with each other using tabs.) When I paste it, the tabs are removed, moving the = signs out of sync. VS2003 did...more >>

MDI in C#
Posted by Monica at 2/17/2007 7:00:11 PM
Hi, Could anybody tell me how I can start developing a MDI Application in C#. please give me good references in this regards. ( I am a VC developer and I start in C# recently) Thanks, Monica...more >>

Can a thread only be a method?
Posted by Sin Jeong-hun at 2/17/2007 6:55:28 PM
I've using thread a lot in C#, but all of them were just single method with no return value or paramenters. It may sound bizarre but, can't it be a class? I'm writing an Windows application that processes inputs from a serial port. The serial port data is processed when DataReceived event occu...more >>

Emailed error reports
Posted by PokerMan at 2/17/2007 4:24:02 PM
Hi guys I don't want to put email code in my app itself for security reasons as i don't want a password in my code client side. My app runs with a website in any case so i'd like to do this and this is my requirement: 1) On any error catch error message 2) Send error message to my webp...more >>



Execution Time
Posted by Sehboo at 2/17/2007 2:32:35 PM
Hi, I have an application, and some methods are taking longer to execute then we would like. My task is to make the application faster. I was wondering if there is any way if I can find out which method calls take longer then others. If there is a way to see how long each of those methods...more >>

Generics collection class that supports foreach ..
Posted by Bit Byte at 2/17/2007 1:47:20 PM
I am writing a generic container class which I want to support the 'foreach' statement. My class looks something like this: class MyClass<T> : CollectionBase { //Implementation for MyClass<T> goes here ... // ... //The next method causes compiler warning IEnumerator GetEnumerator...more >>

message queue
Posted by Eugene Anthony at 2/17/2007 9:31:19 AM
I am having a problem with my try and catch found in the code bellow. It never works when there is no msg in the queue. The code bellow is to read and process one message at a time. Upon completing the process, only then will the next and so on msg will be processed. using System; using Syste...more >>

SQL Server 2005: Creating a relationship between two tables
Posted by weird0 at 2/17/2007 6:29:19 AM
How can i create a relationship between two tables 1:1 or 1:M in Sql Server 2005. I guess i can alternatively take a join of the tables and perform the work. Can anyone tell me the steps after simply: Add Component-> Add SQL Database. Then i created the tables with their respective propert...more >>

compile dll with calls to methods that dont exit yet
Posted by Peted at 2/17/2007 12:00:00 AM
if you are writing a dll that is to be load of hdd from the main application, and instantiated using latebinding and reflection by the main aplication, how do you compile the DLL you are writing when it referers to methods and properties that only exist in the main aplication ? i cant use the...more >>

minor reflection loadfrom/loadfile quirk
Posted by Peted at 2/17/2007 12:00:00 AM
can anyone help me with the following bellow is a routine i use that works, that will load an assembly from a dll class from the HDD, and instantiate a form to be used to control a device. What is listed bellow works but 1 . before i got it to work this line // Dynamically load th...more >>

update custom control during Design time
Posted by --== Alain ==-- at 2/17/2007 12:00:00 AM
Hi, I still have problem updating my custom control at design time. When i change a property of my custom control in the property window, i would like to see this change immediately on my custom control at the design time. Unfortunately, my custom control does not refresh at design time w...more >>


DevelopmentNow Blog