-
as seen on Stack Overflow
- Search for 'Stack Overflow'
WPF's Window.ShowDialog method returns a nullable boolean. So does CommonDialog.ShowDialog.
Now, I understand cases where these would return false (user clicked Cancel or pressed Esc), and when they would return true (code sets Window.DialogResult to true, probably in response to OK being clicked)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
It appears that ShowDialog() invokes the Dispatcher message handling loop within. Thus, you have a stack that looks something like:
Outer-most Dispatcher message loop
...
x.ShowDialog()
Inner Dispatcher message loop
...
I am using the Dispatcher.UnhandledException to catch exceptions not handled…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
i'm new to vb .net and oop although i have learned the basics. I'm working in VB and .NET CF 3.5 and i'm trying to pass and received a value with showdialog. The issue here is when i'm done with a procedure in Load, for some reason MyBase.Showdialog (line 3) gives an error of "NullReferenceException…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
how yo show a form which needs to run synchronously. I tried running application.run from a queueworker of a threadpool- but I had some invalid handles sometime. tried using a regular thread but then when main form closes it doesn't close this- and I don't really like the idea of killing the thread…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
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…
>>> More