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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|