Results 1 to 2 of 2

Thread: [resolved] variable setting itself to null

  1. #1

    Thread Starter
    Hyperactive Member francisstokes's Avatar
    Join Date
    May 2005
    Location
    Kent, England
    Posts
    272

    [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?
    Last edited by francisstokes; Aug 16th, 2006 at 08:35 AM.

  2. #2

    Thread Starter
    Hyperactive Member francisstokes's Avatar
    Join Date
    May 2005
    Location
    Kent, England
    Posts
    272

    Re: [2.0] variable setting itself to null

    Don't worry, ive sorted the problem out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width