Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics 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 May 3rd, 2007, 02:01 PM
Authorized User
 
Join Date: Dec 2006
Posts: 70
Thanks: 0
Thanked 1 Time in 1 Post
Default Friend WithEvents

I have a data grid view that has a modifier of Friend, but it needs to have the "WithEvents" modifier added to it, so that several of the events I have written will work.
I edited the designer.vb file to add the line of code, but it keeps disappearing.

What do I need to do differently to make this work?

Thanks,
Karen

 
Old May 3rd, 2007, 03:16 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I’m not sure about this, but I think you can obtain the behavior of “WithEvents” and “Handles” by using “Add handler.” Try looking into that.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Friend Class in C# mehdi62b C# 11 March 13th, 2008 06:54 PM
Handles clause requires a WithEvents on BUTTON?!?! Ron Howerton ASP.NET 2.0 Basics 1 April 24th, 2007 03:24 PM
Friend Adder in VB.Net renjininair_2000 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 March 11th, 2006 02:34 AM
Need help w/ "WITHEVENTS" & the Outlook Obj ArtDecade VB How-To 1 October 27th, 2004 03:50 AM
BC30506: Handles clause requires a WithEvents vari spacy General .NET 1 July 16th, 2004 12:41 AM





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