![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 10
Rep Power: 0
![]() |
ik i have a question i have 2 images connect1cmd and connect2cmd as in code below and i want to be able when i drag my mouse on top i want connect1cmd to be invisible and connect2cmd to be visible this is what i have so far it will work but when i take the mouse off it still stays the same
Private Sub Connect1cmd_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If Connect1cmd.Visible = True Then Connect1cmd.Visible = False connect2cmd.Visible = True ElseIf connect2cmd.Visible = True Then Connect1cmd.Visible = True connect2cmd.Visible = False End If End Sub |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4
![]() |
instead of using mousemove event, use mouseenter and mouseleave events
![]()
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
#3 | |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3
![]() |
i don't clearly understand by what you mean by dragging my mouse over it, are you dragging any objects? or do you mean when you move the mouse over connect1cmd.....if so instead of using elseif just use an else.......due to fact that your question was not very clear this might not be the correct solution but its worth a try.
__________________
Quote:
|
|
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
My best bet would be to change the states when the mouse is over either cmd button, or the form. when its on ethe form, it resets everything. as for the buttns, just change it accordingly. if taht makes any sense. :p |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|