473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 1911
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 try to close the window after context menu is poped...
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 double-click on the notify icon or right-click...
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 missing. The response was simply because the compiler...
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 applications? The standard context menu for...
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 menu (like textbox, sliders, checkbox, panel...
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 Listview. If ther is no element under the mouse cursor...
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 menu the menu does not close. The click event on the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.