M
Miro
VB 2005 Express.
I have an MDI app, and I have a child form loading in the Parent form.
On the Child form I have a command button "Close". Upon click of that
close,
If MessageBox.Show("Are you sure you want to cancel?", _
"Cancel", _
MessageBoxButtons.YesNo, _
MessageBoxIcon.Question, _
MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly) = Windows.Forms.DialogResult.Yes Then
Me.Close()
Me.Dispose()
End If
This works proper... however I loose focus to the Entire Application.
Even when I try to put something like this after it: frmMainForm.Focus()
, this does nothing.
Am I missing something in my closing / disposing ?
Thanks
Miro
I have an MDI app, and I have a child form loading in the Parent form.
On the Child form I have a command button "Close". Upon click of that
close,
If MessageBox.Show("Are you sure you want to cancel?", _
"Cancel", _
MessageBoxButtons.YesNo, _
MessageBoxIcon.Question, _
MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly) = Windows.Forms.DialogResult.Yes Then
Me.Close()
Me.Dispose()
End If
This works proper... however I loose focus to the Entire Application.
Even when I try to put something like this after it: frmMainForm.Focus()
, this does nothing.
Am I missing something in my closing / disposing ?
Thanks
Miro