473,395 Members | 1,623 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,395 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 1913
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.