Hello, I'm developing a set of Windows form controls that should extend the functionalities of the following classes: public class MyPushButton : System.Windows.Forms.Button public class MyCheckbox : System.Windows.Forms.CheckBox public class MyRadioButton : System.Windows.Forms.RadioButton I decided to derive a class from each of these base classes in order to get the right notifications from the base class events. Now these custom controls should apply some graphic effect to the buttons through a set of properties that would be common to all of the "MyXXX" button classes: due to the fact that multiple inheritance is not supported in C#, how can I avoid to have all of the properties and their get/set helpers duplicated in each of the "MyXXX" classes? Thanks in advance and Kind regards Seve
S
Severino
@Severino
Posts
-
Replacement for multiple inheritance -
UserControl properties persistencyHello, I'm porting an ActiveX control into a .net UserControl using MC++. In order to support persistency with MFC based ActiveX controls there was the DoPropExchange function: is there some similar function in MC++ UserControls? I noticed that the persistency of UserControls properties seems to be embedded inside the .NET framework: if I declare a property of class Bitmap, its contents will be automatically saved inside the .resx file: if I should store a binary based property (for example the contents of a WAV file), what should I do? Any example? Regards Severino
-
Static libraries and C#Hello, I would like to know if there is some way to use a static library (a .LIB developed using C++) from C#. Any idea? Regards Severino