View Single Post
  #1 (permalink)  
Old October 18th, 2004, 08:21 AM
mega mega is offline
Friend of Wrox
 
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default Professional C# _Click event

This is actually more of a VS.NET 2003 question but I could not find an appropriate forum.
I hope you can clarify this:
In the appendix C in Pro C# says that in C# you don't set an event for a button via cmdSomeButton_Click() as in VB, but in C# we supply an eventhandler as the button attribute. But why does VS.NET automatically create a cmdSomeButton_Click(object sender, System.EventArgs e). Is it assuming that programmers come with a VB background? Is there anyway to change this scheme??
It threw me off for quite some time and as I have never used VS.NET before I (wrongly) assumed that the book was wrong.
Thanks

 - mega
__________________
- mega
Aspiring JavaScript Ninja