Define An Event From a Class
Posted: Saturday 26th October 2019 5:34pm
I have a class file that inherits from picture box, and what I want to do is put code in the class file to account for the raising of the mouse down event.
http://gambaswiki.org/wiki/comp/gb.qt4/ ... .mousedown
I can do it from the form, but this is overly complicated for more than one instance. What I am wondering is if there is a way to define code for this event in the class file.
Here is pseudo code to show what I am looking for:
Is this possible?
http://gambaswiki.org/wiki/comp/gb.qt4/ ... .mousedown
I can do it from the form, but this is overly complicated for more than one instance. What I am wondering is if there is a way to define code for this event in the class file.
Here is pseudo code to show what I am looking for:
Code: Select all
Public Sub _MouseDown()
Me.Tag = "Clicked!"
End