Re: Strange Behavior

Chris Anderson <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
>The question obviously is why is it going back to the Main form and trying
>to run the CC.ShowDialog() command again at this point?


It's not trying to run the command again...ShowDialog halts until the shown dialog is closed and then returns.
Your error is in the dialog somewhere and may be occurring in non-user code (often due to an async delegate/callback function)

You can tell the IDE to stop on non-user code and to stop on all exceptions which may help by stopping at a point closer to the actual cause of the exception.
I'll have to describe where the option is later as I'm not using a PC ATM.





-----Unmodified Original Message-----
Errors?  What errors?

You're saying simply pressing the Ctrl key causes an error?

On Mon, 9 Apr 2007 17:48:41 -0500, Steve Abaffy <[email protected]>
wrote:

>I have a ListBox whose selectionMode is set to MultiExtened.
>
>Pseudo code to follow.
>
>In MainFormMenu:
>Select MenuItem1
>CassCertify CC = new CassCertify();
>
>CC.ShowDialog();
>
>CassCertify Form pops up.
>Select OpenFile Button on CC Form.
>Populate Listbox on form from file.
>Select an item in list box
>Press ctrl key
>CC.ShowDialog() in main form --- Debug stops and errors out.
>
>The question obviously is why is it going back to the Main form and trying
>to run the CC.ShowDialog() command again at this point?
>
>Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.