I have a simple vb2005 app (for testing). It is just a simple winform with
one button that brings up a message box. When I invoke the app and click on
the button, the message box comes up OK. When I click a button on the
message box, the form and message box drop behind the IDE to the background.
The exe does the same thing. What can I do to keep the app from
dropping/falling to the background like that? Here is the code behind the
button.
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Select Case MessageBox.Show ("hello world from VB2005", "Testing",
MessageBoxButto ns.YesNoCancel, MessageBoxIcon. Exclamation,
MessageBoxDefau ltButton.Button 3, MessageBoxOptio ns.DefaultDeskt opOnly, False)
Case Windows.Forms.D ialogResult.Yes : MessageBox.Show ("Yes")
Case Windows.Forms.D ialogResult.No : MessageBox.Show ("No")
Case Windows.Forms.D ialogResult.Can cel : MessageBox.Show ("Cancel")
End Select
End Sub
It is a very simple app, no imports no option strict, ...
Any suggestions appreciated.
Rich