Results 1 to 5 of 5

Thread: MessageBox changes outcome?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Location
    New York
    Posts
    94

    MessageBox changes outcome?

    See title. I'll post code if need arise, I'm having a messagebox pop up changes a boolean variable somehow? causing different answers? When I get on my laptop I'll give more info, but ideas are appreciated until then.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MessageBox changes outcome?

    1. What are the buttons on your messagebox?
    2. What happens when one of them is clicked?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Location
    New York
    Posts
    94

    Re: MessageBox changes outcome?

    the messagebox code is basically:

    MessageBox.Show(Convert.ToString({Anything in program})

    Nothing special, but later part of the program is affected. Something to do with the pause it takes the user to click okay?

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: MessageBox changes outcome?

    Your problem is unclear to me but perhaps you could have a look at DialogResult, therein you could make a decision based on it...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Location
    New York
    Posts
    94

    Re: MessageBox changes outcome?

    Hah, funny story...

    I forget which language it was in, but you could clear the screen and start your program by pressing Ctrl+F5. However, is VS2003, this compiles your program without debugging. This messed up the breakpoints, which messed up my methods, which messed up everything.

    Sorry for wasting everyone's time.

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