S
Steven Nagy
Hey all,
I have a WinCE app and in it I have a settings form that pops up if a
menu item is pressed.
The problem is that just opening the form and closing it again, as soon
as it hits any sort of refresh command, or Application.DoEvents, it
doesn't go past that line of code.
Here's the actual code. If I put a break point in the
Application.DoEvents lines, it never gets to the NEXT line. I don't
know alot about Compact Framework so perhaps my understanding/usage of
Applciation.DoEvents is wrong. Normally I wouldn't have it at this
point anyway, but its to illustrate that it is definately the DoEvents
call that is stopping my application.
If settingsForm.ShowDialog() = DialogResult.OK Then
Application.DoEvents()
saveSettings()
init()
Else
Application.DoEvents()
End If
Many thanks,
Steven
I have a WinCE app and in it I have a settings form that pops up if a
menu item is pressed.
The problem is that just opening the form and closing it again, as soon
as it hits any sort of refresh command, or Application.DoEvents, it
doesn't go past that line of code.
Here's the actual code. If I put a break point in the
Application.DoEvents lines, it never gets to the NEXT line. I don't
know alot about Compact Framework so perhaps my understanding/usage of
Applciation.DoEvents is wrong. Normally I wouldn't have it at this
point anyway, but its to illustrate that it is definately the DoEvents
call that is stopping my application.
If settingsForm.ShowDialog() = DialogResult.OK Then
Application.DoEvents()
saveSettings()
init()
Else
Application.DoEvents()
End If
Many thanks,
Steven