Hi all,
I have the following code in the OnLoad event of a form:
There are several buttons on this form. I could place a MouseUp/MouseDown event behind each one so that it mimics a command button when pressed. However, is there a more slick way to achieve this on the, say, OnCurrent event a form with just one piece of code?
Many thanks.
I have the following code in the OnLoad event of a form:
Code:
Dim ctrl As Control
For Each ctrl In Me.Form
If ctrl.Tag = "cmdSpecialEffect" Then
ctrl.SpecialEffect = 1
End If
Next ctrl
There are several buttons on this form. I could place a MouseUp/MouseDown event behind each one so that it mimics a command button when pressed. However, is there a more slick way to achieve this on the, say, OnCurrent event a form with just one piece of code?
Many thanks.