G
Guest
Good day,
I need to override many different types of controls: RichTextBox, Image,
TextBox, among others. I'm override just a few event handling methods for
them so they all have common event handling code. Basicaly I'm just adding
some event handling code that allows the control to be dragged and dropped
all over the form.
What class do I need to extend to do so? I tried extending
Windows.Forms.Controls but this doesn't work as RichTextBox, Image, etc are
all part of the Windows.Forms namespace.
I don't want to create a UserControl because then I'll have to create a
seperate class for each control.
I need to override many different types of controls: RichTextBox, Image,
TextBox, among others. I'm override just a few event handling methods for
them so they all have common event handling code. Basicaly I'm just adding
some event handling code that allows the control to be dragged and dropped
all over the form.
What class do I need to extend to do so? I tried extending
Windows.Forms.Controls but this doesn't work as RichTextBox, Image, etc are
all part of the Windows.Forms namespace.
I don't want to create a UserControl because then I'll have to create a
seperate class for each control.