Tag Archives: subclass

Make an initializing constructor for a child class in C#

An initializing constructor is a constructor that takes parameters to make it easy to initialize an object’s properties. This example shows how to reuse a class’s initializing constructor for a child class. The following Person class has an initializing constructor. … Continue reading

Posted in classes, OOP | Tagged , , , , , , , , , , , , , , | Leave a comment

Use WndProc to read Windows messages in C#

This example shows how you can determine what windows messages a program is receiving. (In earlier versions of Visual Basic, you could intercept messages by using API functions to install a WndProc handler. That was called “subclassing” so the method … Continue reading

Posted in forms, system | Tagged , , , , , , , , , , , | Leave a comment