ShowDialog won't run

Posted by clawson on Stack Overflow See other posts from Stack Overflow or by clawson
Published on 2010-04-20T04:10:41Z Indexed on 2010/04/20 4:13 UTC
Read the original article Hit count: 408

Filed under:

I've come across a situation where I try to run a simple line of code in a method

Dim res As DialogResult = frmOptions.ShowDialog()

but nothing happens. The dialog box will not appear. If I run this method from another location in the code it executes fine (i.e. displays the form in dialog mode and code executes fine thereafter). Hence, it may be the way in which I arrive at this code that is causing my problem, but I cannot see to find what is wrong.

When I pause the debugger the line of code is highlighted in green but I can't see to step over it or into it.

Any idea what may cause this to happen, or what I should be looking for that might be causing the problem??

Thanks for the help!

© Stack Overflow or respective owner

Related posts about vb.net