Welcome! and rules
Joel on Software
Where have the events gone?
This is such a newbie question it's embarasing. However, I recently spoke with a couple of Microsoft guys at a .NET event, and they both said "no problem", fired up their laptops to show me, and found that they didn't know the answer either...
hehe 2 Microsoft guys didn't know it?? Well... yes, you missed something obvious. In the top of your code window, you see 2 comboboxes. In the first one, you can select your object, then in the 2nd, all the events will appear! ;)
And in C# you attach event handlers on GUI things from the properties window - click the event (lightning) icon at the top of the properties window and then double-click the event (or select an existing event handler from the drop-down)....
How do you do it in ASP.NET and C#? I can only see in the combos what's already there.
Thomas - did I pre-empt your question? It's not done from the code editor in C# -- its done from the Properties window when you're in Design View.
Fog Creek Home