Context Menu not disappearing after click event raised

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

Am having an interesting issue with the context menu component on a number
of forms I have written. On right clicking on a listview control I show a
context menu, when you click on one of the menu items a new form will open.
However after the new form has initialised and is showing (inside an MDI
window) the context menu is still popped up usually above the newly created
form.

The new window doesnt appear to receive focus even if I use control.focus on
a control in the new form or explicitly call focus on the new form.

I cant see any reason why it works on some forms but not on others.

TIA

Peter Cook
Senior .NET Developer
SmartApproach Ltd
 
Peter,
The new form wouldn't happen to be called modally would it?

Example:

Sub SomeMenuItem(sender…..
Dim frm As New FrmX
frm.ShowDialog
End Sub
 
Back
Top