zestygirl
Registered User.
- Local time
- Today, 17:55
- Joined
- Jan 28, 2005
- Messages
- 33
I am trying to apply the following behaviour to a label formatted as a Raised Label (Label1) in order to make it mimic a button:
I have a label with the 'on click' macro set to exit the form.
I want to create a bit of code as follows:
On Mouse Down:
- I click event the button to choose the code builder and I see this:
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End Sub
- I begin typing as follows (red):
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
[Label1].SpecialEffect = 2
End Sub
I do the same thing for "On Mouse Up" but insert SpecialEffect "1" (to mimic the clicking behaviour you get with a button).
Then I close the code builder.
When I open the form and click the button, nothing happens. It just exits the form as have specified but does not 'move'. It's like the code I put in is not working.
Am I doing something wrong? Can someone help me? Composing code is not something I am familiar with so I suspect I may have made a mistake.
I have a label with the 'on click' macro set to exit the form.
I want to create a bit of code as follows:
On Mouse Down:
- I click event the button to choose the code builder and I see this:
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End Sub
- I begin typing as follows (red):
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
[Label1].SpecialEffect = 2
End Sub
I do the same thing for "On Mouse Up" but insert SpecialEffect "1" (to mimic the clicking behaviour you get with a button).
Then I close the code builder.
When I open the form and click the button, nothing happens. It just exits the form as have specified but does not 'move'. It's like the code I put in is not working.
Am I doing something wrong? Can someone help me? Composing code is not something I am familiar with so I suspect I may have made a mistake.