Dear All
Actually I have very basic/stupid question regarding Custom Events
I am confused for CUSTOM EVENT and Regular Event. If we have to hook the
Custom event with Regular Event every time then why we actually need to
create CUSTOM EVENT, why don't we simply call the method on the same regular
event like in below example we can Call the method handlechanging() with in
TextChange event will it not do the same task ?
Is this is only for performance or to maintain some kind of Object Oriented
Approach
Correct me if I am wrong for my understanding on CUSTOM EVENT Creation
e.g.
// Delegate Hook with already available event
this.textBox1.TextChanged += new System.EventHandler(this.HandleChanging);
// Defination of Handler Used as Function used work for Custom Event
private void HandleChanging(object sender, System.EventArgs e) {
// method body here
}
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net