Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 12th, 2006, 4:38 PM   #1
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
Arrow picture help

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
Donnie is offline   Reply With Quote
Old Jun 13th, 2006, 1:09 AM   #2
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4 melbolt is on a distinguished road
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
melbolt is offline   Reply With Quote
Old Jun 13th, 2006, 4:46 AM   #3
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
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:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jun 13th, 2006, 12:36 PM   #4
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by kruptof
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.
I think he means like the mousover effect in javascript.

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
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:09 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC