|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have attached a sample project, plz help me any1 by modifying the code to get a hover effect and when the mouse button is down and cursor is not over the button, i want it to revert back to the original image. Plz help
|
|
#2
|
|||
|
|||
|
when the mouse button is down and cursor is not over the button??=Mouse is click on the form except on the button??
U can use: Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If X > cmdMain.Left And X < (cmdMain.Left + cmdMain.Width) Then Exit Sub End If If Y < cmdMain.Top And Y > (cmdMain.Top + cmdMain.Height) Then Exit Sub End If MsgBox "OK!Mouse is click on the form except on the button!" End Sub ![]() Last edited by cleverpig : September 16th, 2003 at 12:14 AM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Hover effect any1, plz help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|