C
CAA
Hello,
I'm struggling with the concept of a class module
i have a click event which i need to add to 30 or so images on a form.
Anybody know a good Class module tutorial or help me along a little, or
even if it is possible to do this!!
some code for you>
Private Sub S1_MouseDown(ByVal Button As Integer, ByVal _Shift As
Integer, ByVal x As Single, ByVal Y As Single)
If Button = 2 Then
ShN = 1
Call shFurn
Else
ShN = 1
Call ShWdt
End If
End Sub
Private Sub S2_MouseDown(ByVal Button As Integer, ByVal Shift_ As
Integer, ByVal x As Single, ByVal Y As Single)
If Button = 2 Then
ShN = 2
Call shFurn
Else
ShN = 2
Call ShWdt
End If
End Sub
Private Sub S3_MouseDown(ByVal Button As Integer, ByVal_ Shift As
Integer, ByVal x As Single, ByVal Y As Single)
If Button = 2 Then
ShN = 3
Call shFurn
Else
ShN = 3
Call ShWdt
End If
End Sub
These go on and on and make my eyes hurt whilst filling a large section
of code.
Thanks for looking
CAA
I'm struggling with the concept of a class module
i have a click event which i need to add to 30 or so images on a form.
Anybody know a good Class module tutorial or help me along a little, or
even if it is possible to do this!!
some code for you>
Private Sub S1_MouseDown(ByVal Button As Integer, ByVal _Shift As
Integer, ByVal x As Single, ByVal Y As Single)
If Button = 2 Then
ShN = 1
Call shFurn
Else
ShN = 1
Call ShWdt
End If
End Sub
Private Sub S2_MouseDown(ByVal Button As Integer, ByVal Shift_ As
Integer, ByVal x As Single, ByVal Y As Single)
If Button = 2 Then
ShN = 2
Call shFurn
Else
ShN = 2
Call ShWdt
End If
End Sub
Private Sub S3_MouseDown(ByVal Button As Integer, ByVal_ Shift As
Integer, ByVal x As Single, ByVal Y As Single)
If Button = 2 Then
ShN = 3
Call shFurn
Else
ShN = 3
Call ShWdt
End If
End Sub
These go on and on and make my eyes hurt whilst filling a large section
of code.
Thanks for looking
CAA