Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 7th, 2007, 07:16 AM
Authorized User
 
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default ContextMenu

Hi,

Is it possible to use the one ContextMenu for multiple controls??

Clicking on an Item in the ContextMenuStrip should perform different operations for each Control.

e.g. Clicking on 'Delete' in the Context menu should delete the entry selected in a control.

thanks.
 
Old November 30th, 2007, 03:21 AM
Registered User
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes,it's possible.
contextMenuStrip1.SourceControl will give you the current control that popup the menu

-------------------------
yeah,I like cookie
www.recipeshow.org





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 370 - New ContextMenu MajorD BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 July 25th, 2007 10:26 AM
IFrame and the contextmenu harshad Javascript 1 November 1st, 2006 02:20 AM
IFrame and the contextmenu harshad Javascript 2 October 31st, 2006 02:10 AM
IFrame and the contextmenu sherbir Javascript 6 April 28th, 2006 01:48 AM
Who can help me set up a contextmenu for tray icon koolvbnet1 Pro VB.NET 2002/2003 1 May 26th, 2004 02:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.