View Single Post
Old 10-24-2004, 02:38 PM   #6 (permalink)
Iron_Cross
 
Ultra Techie

Join Date: Sep 2003

Location: Bamberg, Germany

Posts: 549

Iron_Cross

Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

Exactly, C# is more structured, and therefor more powerful. Personally I'd change your example to:
Code:
private void button1_Click(object sender, System.EventArgs e)
{
    Button b = (Button)sender;
    b.Text = "Hello!";
}
Much simpler All that extra stuff isn't needed.
__________________

See today\'s Penny-Arcade!(May contain foul lanuage)
Pain is weakness leaving the body.

PM Me for my MSN
Iron_Cross is offline