Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Difference between "Protected WithEvents myClassName" And "Protected myClassName" ?

Reply
Thread Tools

Difference between "Protected WithEvents myClassName" And "Protected myClassName" ?

 
 
Andreas Klemt
Guest
Posts: n/a
 
      07-04-2003
Hello,

what is the difference between
a) Protected WithEvents myClassName
b) Protected myClassName

Thanks,
Andreas


 
Reply With Quote
 
 
 
 
James J. Foster
Guest
Posts: n/a
 
      07-05-2003
WithEvents is a VB.NET keyword to indicate that the object you are declaring
can raise events, and you want to support the ability to respond to those
events.

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com


"Andreas Klemt" <> wrote in message
news:...
> Hello,
>
> what is the difference between
> a) Protected WithEvents myClassName
> b) Protected myClassName
>
> Thanks,
> Andreas
>
>



 
Reply With Quote
 
 
 
 
Andreas Klemt
Guest
Posts: n/a
 
      07-05-2003
Hello James,
does this mean, when I have a UserControl Class like this

Protected WithEvents ctlID As myUserControlClass

that any Events in my UserControlClass like Button.Click will be
automatically bubbled up to the parent class?

What would happen when I only do this
Protected ctlID As myUserControlClass

Thanks you for any help!!
Andreas

"James J. Foster" <> schrieb im Newsbeitrag
news:...
> WithEvents is a VB.NET keyword to indicate that the object you are

declaring
> can raise events, and you want to support the ability to respond to those
> events.
>
> --
> James J. Foster, DotNetCoders
> http://www.dotnetcoders.com
>
>
> "Andreas Klemt" <> wrote in message
> news:...
> > Hello,
> >
> > what is the difference between
> > a) Protected WithEvents myClassName
> > b) Protected myClassName
> >
> > Thanks,
> > Andreas
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
error Handles clause requires a WithEvents variable. Moe Sizlak ASP .Net 2 07-27-2004 12:06 AM
Protected WithEvents Question Benign Vanilla ASP .Net 2 06-22-2004 12:39 PM
WithEvents ??? ASP .Net 4 12-24-2003 06:40 PM
Re: What means Protected WithEvents ? clintonG ASP .Net 0 07-05-2003 06:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57