G
Guest
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(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Select Case MessageBox.Show("hello world from VB2005", "Testing",
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button3, MessageBoxOptions.DefaultDesktopOnly, False)
Case Windows.Forms.DialogResult.Yes : MessageBox.Show("Yes")
Case Windows.Forms.DialogResult.No : MessageBox.Show("No")
Case Windows.Forms.DialogResult.Cancel : MessageBox.Show("Cancel")
End Select
End Sub
It is a very simple app, no imports no option strict, ...
Any suggestions appreciated.
Rich
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(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Select Case MessageBox.Show("hello world from VB2005", "Testing",
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button3, MessageBoxOptions.DefaultDesktopOnly, False)
Case Windows.Forms.DialogResult.Yes : MessageBox.Show("Yes")
Case Windows.Forms.DialogResult.No : MessageBox.Show("No")
Case Windows.Forms.DialogResult.Cancel : MessageBox.Show("Cancel")
End Select
End Sub
It is a very simple app, no imports no option strict, ...
Any suggestions appreciated.
Rich