D
dchman
I have a form which is populated with various controls at runtime. I also
want to populate the "OnMouseDown" event.
If I set the event procedure at design time it would look like this;
Private Sub CMD1_MouseDown(Button As Integer, Shift As Integer, X As Single,
Y As Single)
Call SetCurCtrl(Screen.ActiveControl)
End Sub
I think it is possible to set the OnMouseDown event at runtime, but I
haven't been able to figure out the syntax for the above example (I want to
send a reference for the control to another procedure).
Any ideas?
thanks
want to populate the "OnMouseDown" event.
If I set the event procedure at design time it would look like this;
Private Sub CMD1_MouseDown(Button As Integer, Shift As Integer, X As Single,
Y As Single)
Call SetCurCtrl(Screen.ActiveControl)
End Sub
I think it is possible to set the OnMouseDown event at runtime, but I
haven't been able to figure out the syntax for the above example (I want to
send a reference for the control to another procedure).
Any ideas?
thanks