2
Reply

How to override the method in C#

manu.laureys

manu.laureys

Oct 28 2004 5:38 AM
2.9k
I have a usercontrol. In that control I open and close the registerkey in the laod event. I also have a virtual method to read the settings from the registry. In the base this method is empty. What I want to do is, each time I use this control on a form, I want to override the method to read the settings, so that I can read the settings for that specific control. My problem is that I can't (or don't kow how to) override the method in my user control. Can anyone help with this problem?

Answers (2)