Form.ShowDialog() does not show form.
- by clawson
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!