468,549 Members | 2,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,549 developers. It's quick & easy.

Closing a Context Menu

Hi,

Basic Question, difficult answer

1) Thread one; Open Context Menu.

2) Thread two; it needs close the Context Menu without Mouse interaction.
Thread two has all the information about the Context Menu

Somebody knows how to do it?

Basically I need close the ContextMenu after been opened. Calling
ContextMenu.Dispose doesn't work
Jul 21 '05 #1
2 1627
Send a message to thread one to inform it close the context menu. Don't
change UI behaviour in another thread.
"Gustavo Franco" <gu************@hotmail.com> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
Hi,

Basic Question, difficult answer

1) Thread one; Open Context Menu.

2) Thread two; it needs close the Context Menu without Mouse interaction.
Thread two has all the information about the Context Menu

Somebody knows how to do it?

Basically I need close the ContextMenu after been opened. Calling
ContextMenu.Dispose doesn't work

Jul 21 '05 #2
Hi,

Have you tried using the SendKeys of VB to close the
menu. You can send a Esc key code to the SendKeys.
Regards,
Puneet Taneja
-----Original Message-----
Send a message to thread one to inform it close the context menu. Don'tchange UI behaviour in another thread.
"Gustavo Franco" <gu************@hotmail.com> wrote in messagenews:uk**************@TK2MSFTNGP12.phx.gbl...
Hi,

Basic Question, difficult answer

1) Thread one; Open Context Menu.

2) Thread two; it needs close the Context Menu without Mouse interaction. Thread two has all the information about the Context Menu
Somebody knows how to do it?

Basically I need close the ContextMenu after been opened. Calling ContextMenu.Dispose doesn't work

.

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mohit Gupta | last post: by
5 posts views Thread by Dean L. Howen | last post: by
8 posts views Thread by Dennis C. Drumm | last post: by
2 posts views Thread by Gustavo Franco | last post: by
1 post views Thread by goRide | last post: by
1 post views Thread by [EVA-02]Tseng | last post: by
4 posts views Thread by Fred | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.