Some guy asked a question: Is there any other way to use a routine on InitilizeCompent to handle all textboxes? So he wants to get away from typing a lot: no need to write the same event to all our …
Tag: event
Events Events are always implemented with delegates in C#. Publishing class defines a delegate, the subscribing class first creates a method that matches the delegate signature and then creates an instance of the delegate type encapsulating that method. Everytime an …
I was asked about try-catch blocks if we use them in multilevel methods (one’s calling another that throws exception -> which catch block will catch it, etc.). Here I show you a simple, 3 level try-catch block. We have a …
When you’re creating Winform applications, it could be useful if you also create your own controls. In this example I show you how to create custom control, with new custom property and event. Let’s create a new kind of TextBox …