PC Review


Reply
Thread Tools Rate Thread

Closing a Context Menu

 
 
Gustavo Franco
Guest
Posts: n/a
 
      23rd Dec 2003
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


 
Reply With Quote
 
 
 
 
Onega
Guest
Posts: n/a
 
      24th Dec 2003
Send a message to thread one to inform it close the context menu. Don't
change UI behaviour in another thread.


"Gustavo Franco" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Puneet Taneja
Guest
Posts: n/a
 
      24th Dec 2003
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't
>change UI behaviour in another thread.
>
>
>"Gustavo Franco" <(E-Mail Removed)> wrote in

message
>news:(E-Mail Removed)...
>> 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
>>
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Context Menu Not Closing Fred Microsoft VB .NET 4 4th Dec 2006 04:41 PM
Very weird problem using NotifyIcon and Context Menu for MSN like form/app closing behavior ThunderMusic Microsoft VB .NET 3 18th Aug 2005 10:11 AM
Closing a Context Menu Gustavo Franco Microsoft VC .NET 1 24th Dec 2003 01:32 AM
Closing a Context Menu Gustavo Franco Microsoft VB .NET 1 24th Dec 2003 01:32 AM
Closing a Context Menu Gustavo Franco Microsoft C# .NET 1 24th Dec 2003 01:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.