Context Menu not disappearing after click event raised

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top