[resolved] variable setting itself to null
Im writing a process diagnostic program. I have a button that allows the user to make a report of all the process at that time (its very basic, only includes name of process and a few other things). The button event writes the report using a loop and then a new form displays the report in a textbox. This all works fine, its just a really simple problem im having.
I want to have the forms title similar to the following:
"Diagnostic - ../../../ 00:00:00:"
I was going to do this by just making a string like this:
Code:
string sTitle = "Diagnositic - " + DateTime.Now.ToString();
and then use that as an argument in the report forms constructer, then set the text property there, but it just sets the string to null. I stepped through
with break points and its like, its there one second, and set to null the next.
Is there any reason for this?
Re: [2.0] variable setting itself to null
Don't worry, ive sorted the problem out.