I was wondering how I can override the default methods of form controls? This question arose from the following goal:
I have a picturebox. When I call its .Refresh()
method, it will do some procedures under the hood, including triggering the picturebox's Paint
event. Basically I want to add an argument for the Paint
bearing a condition based on which the method should do different tasks.
After all, seems like I would need to override the .Refresh()
method so that I could pass an argument from there. How can I do that?
Thanks