Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 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 July 20th, 2007, 12:15 PM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 370 - New ContextMenu

Having a bit of trouble understanding the following context menu instructions from page 370...
Code:
'Create a new context menu
Dim objMenu As New ContextMenu()
When I add this code, the program works fine; however, as I'm typing the code, Intellisense does not offer "New ContextMenu" - it only offers "New ContextMenuStrip".

Can anyone explain why? Just trying to gain a better understanding of the code.

 
Old July 25th, 2007, 04:37 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

The ContextMenu class is being phased out in favor of the new ContextMenuStrip class which is the new replacement. I have no idea why Intellisense has been disabled for this class.

Thearon
 
Old July 25th, 2007, 10:26 AM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the information Thearon... and thanks for the great book!






Similar Threads
Thread Thread Starter Forum Replies Last Post
C# Ch 10 Page 370 - Simple User Control surefire BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 February 25th, 2008 01:53 PM
ContextMenu obrienkev Visual Studio 2005 1 November 30th, 2007 03:21 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
Code snippet error on page 370 cebartling BOOK: Professional Java Development with the Spring Framework 0 September 18th, 2005 10:00 PM





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