PC Review


Reply
Thread Tools Rate Thread

Context menu from a set of check boxes

 
 
=?Utf-8?B?SmF5?=
Guest
Posts: n/a
 
      14th Apr 2006
Hi,
I have a dynamic array of checkboxes with control tag and a contextmenu
whose
menu items are “Increase”,”Decrease” with click events. Every check box in
the array has the same context menu. When I tap and hold on a check box, the
context menu pops up. Now I would like to know which checkbox fires the
contextmenu, so that I can find the tag of the checkbox when the user choose
the menu item “Increase’ Or “Decrease”. If any one knows the solution, please
help me.

Thanks!!

 
Reply With Quote
 
 
 
 
Daniel Moth
Guest
Posts: n/a
 
      20th Apr 2006
If you catch the Popup event from the contextmenu you can see which control
it is attached to: ((ContextMenu)sender).SourceControl

If you are asking a different question then please post a small repro and
elaborate/rephrase your question...

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

"Jay" <(E-Mail Removed)> wrote in message
news:3679C717-18B4-4074-B06F-(E-Mail Removed)...
> Hi,
> I have a dynamic array of checkboxes with control tag and a contextmenu
> whose
> menu items are "Increase","Decrease" with click events. Every check box
> in
> the array has the same context menu. When I tap and hold on a check box,
> the
> context menu pops up. Now I would like to know which checkbox fires the
> contextmenu, so that I can find the tag of the checkbox when the user
> choose
> the menu item "Increase' Or "Decrease". If any one knows the solution,
> please
> help me.
>
> Thanks!!
>




 
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
Help - Create Context Menu for Text Boxes Kenny Microsoft Excel Programming 0 6th Nov 2008 02:24 AM
[Excel '03] check-box menu items and cell context menus don't disp Jack Hoxley [MVP] Microsoft Excel Programming 4 2nd May 2008 05:08 PM
custom paste context menu fvor text boxes Dennis C. Drumm Microsoft C# .NET 9 12th Apr 2005 08:23 AM
Re: 1 Context Menu for mutiple Picture Boxes =?Utf-8?B?YmVhbmltYW5pdXM=?= Microsoft C# .NET 0 29th Sep 2004 07:55 PM
disable context menu for text boxes Henrik Microsoft Dot NET Framework Forms 2 10th Dec 2003 05:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 PM.