472,352 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

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 1807
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mohit Gupta | last post by:
Hi all, Lately I have been working on an application in VB .net CF for Pocket PC device. I have a small question about Context Menu. When I...
3
by: ThunderMusic | last post by:
Hi, I'm trying to have a MSN Messenger like form/app closing behavior. When I click on the X button, I only want the form to disappear and when I...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is...
5
by: Dean L. Howen | last post by:
Dear friends, Could we determine when context menu should appear?
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows...
2
by: Gustavo Franco | last post by:
Hi, Basic Question, difficult answer 1) Thread one; Open Context Menu.
1
by: goRide | last post by:
Hi, I'm looking of a way (preferred - a ready class or dll) to customize the context menu. many application has more controls inside the context...
1
by: [EVA-02]Tseng | last post by:
Hi, got a problem with Contextmenu. I got a ListView and want to have the ContextMenu only shown when the user rightclicks an Element in the...
4
by: Fred | last post by:
Hi, I have a list box with a context menu. When I right click the menu appears as expected. However when I select an option on the context...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.