Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

Control Events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James - 16 Aug 2007 19:10 GMT
Im new to c#
I dont completely understand sender and e

in control events for example enter event
what is sender and e
there properties
TIA

James
Nicholas Paldino [.NET/C# MVP] - 16 Aug 2007 19:22 GMT
James,

   Typically the pattern for an event handler is to have two parameters.
The first, sender, is the object that fired the event.

   The second is to have a class that derives from EventArgs which has any
additional information about the event which might not be immediately
available to the caller.

   For example, a MouseMove event has information on the MouseEventArgs
instance passed to the event handler which indicates the position of the
mouse at the time the event was fired.  This information isn't part of the
regular information that the Control class exposes, so it is exposed through
the MouseEventArgs.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Im new to c#
> I dont completely understand sender and e
[quoted text clipped - 5 lines]
>
> James

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.