Originally Posted by
angedelamort
The solution of HanneSThEGreaT is really nice and easy, but it's not robust since it's base on string that can easily change in the designer. Probably using the "tabPageObject.Name" property could be a better solution.
But The enter Even is better in my Opinion since you don't have to create a switch case for it. Like memeloo said, it's exactly the same thing as the SelectedTabChange Event. In order to understand, you should check the code generated by the designer in the "<form>.Designer.cs".
A delegate is just a glorified pointer to function (with many useful features). From any event, you can add a call to any function you create or exists that match the signature of the delegate (function definition). But what does the designer, it helps you generating 2 things:
1. The function that will be called (void myFunction() {your code})
2. The binding to the event (myControl.Event += myFunction)
When it's not available in the list, you can do it yourself since not all events are available in the designer.