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 2008 > threads for sunday february 10

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

Making a Log File Class
Posted by Luc The Perverse at 2/10/2008 11:47:55 PM
I have a class called "HistoryLog" which has a member variable of type StreamWriter which is initialized in the constructor. When I tested it on small outputs, nothing would write to the file, so I looked in the documentation and found out the Close() function was supposed to be called (or ...more >>

NRE opening combobox dropdown menu
Posted by Andrus at 2/10/2008 7:47:06 PM
SWF DataGridView contains combobox control. Activating combobox and pressing F4 to open dropdown menu causes strange NRE (see below). When I enter some valid value to combobox, press tab, shift+tab , 44 dropdown menu opens OK. How to fix ? How to use VCSE 2008 with .net framework source ...more >>

executing vbscript functions from a C# winform app
Posted by Kasper at 2/10/2008 3:05:18 PM
Hi Group. I have an old VB6 application which loads a number of gui controls from an inifile and for each control the inifile states the name of the vbscript that should be executed once the control is clicked or otherwise triggered. My question is whether it is possible to execute the vb scr...more >>

XmlSerializer question
Posted by The Last Danish Pastry at 2/10/2008 12:14:15 PM
Why is it that I can serialize a DateTime using XmlSerializer, but not a TimeSpan? Also, and perhaps more importantly - how could I have known ahead of time, using the published documentation, that DateTime is going to work and TimeSpan isn't? Trying to serialize a TimeSpan does not thro...more >>

Get the XML response on a SOAP webservice
Posted by gjaydie_spam_die@free.fr at 2/10/2008 11:22:53 AM
Hi, I'm currently using a SOAP web service, using "Add webservice reference" in Visual Studio. But, to get a clearer view of the data I'm getting, I would like to take a look at the XML file I assume (1) I'm getting back from the webservice, before it's "translated" by the generated access...more >>

Manage the Allocate memory (every new object) on C# solutions
Posted by cnimrod@gmail.com at 2/10/2008 11:02:27 AM
Hi, I need to "catch" every object that is tring to be written to memory (every line like String s = new String() and etc.) Can I overload it? Can Ioverride it? I need it to be general in all my solution and with out doing anything specail in the other projects (like inheritance from interfac...more >>

forcing parent window's title bar to remain active
Posted by rory.groves@gmail.com at 2/10/2008 10:33:43 AM
I would like to force the parent window's title bar to paint as Active when a tool window is active. Here is my code: public const int WM_NCACTIVATE = 0x086; protected override void WndProc(ref System.Windows.Forms.Message m) { if (m.Msg == WM_NCACTIV...more >>

C# inheritance
Posted by rick at 2/10/2008 5:26:54 AM
I have a service that runs jobs. Each job is an instance of a class that inherits a CJob class. The service has a collection of objects (job classes). Each job has an inherited property named Running from the CJob class. The service checks the status of each jobs Running property every second. E...more >>



Deserialization of invalid enum values
Posted by steinmr@gmail.com at 2/10/2008 3:42:34 AM
I have a class with an enum field which is serialized. For whatever reason, the enum value that was serialized, no longer exists in the enum. When I deserialize, I get an InvalidOperationException. Is there any way of ignoring this error in the xml document, set the enum to the default value, an...more >>

How to use Background worker with windows forms c# app?
Posted by Anjan Bhowmik at 2/10/2008 2:16:10 AM
Hi, I need to develop a c# forms application. My application will do these steps --- 1) It will read a list of user entries from SQL server 2005 Database. 2) For each user it will generate some content & send it to him/her via email 3) For each operation it will generat...more >>

threads
Posted by csharpula csharp at 2/10/2008 1:47:27 AM
Hello, I would like to consult about thread usage in my application. I got a console application which is activating a process and I need to update a log file during this process. My question is : do I need to use another thread for updating th log or can i do it in the same thread with the con...more >>

Not being able to insert text to a rich text box
Posted by K Viltersten at 2/10/2008 12:39:30 AM
I'm doing this on my rich text box called rtb, with cmb being a combo box. rtb.Text.Insert (rtb.Text.Length, cmb.SelectedItem.ToString () + "\n"); The text, however, doesn't appear. What do i miss? The idea is to add the text selected from the combo box each time the selection is made. Tha...more >>


DevelopmentNow Blog