Hi everyone.
My question is:
I have a feature on my program that allows it to mimic the Windows StartBar by making it a height of "100" and placing it with a Left position of 0 and a Top position of 0 (top left corner of the screen). What I'm trying to accomplish is that when the user puts the mouse over the program (which would be at a height of "100") it would expand to it's original height ("525") but when they move their mouse off of the program it would return to a height of "100". Anyways, here's what I got:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
' Dont worry about this line. Just checks if the feature has been activated.
If frmMenus.mnuStartBarMirror.Checked = True Then
If frmMain.Height = "100" Then
frmMain.Height = "525"
ElseIf frmMain.Height = "525" And X <> frmMain.CurrentX And Y <> frmMain.CurrentY Then
frmMain.Height = "100"
End If
End If
End Sub
This works fairly well, however it's a bit jumpy and shaky when you move your mouse around the program and it's really difficult to control. Anyways, I was wondering if anyone knows a way to code this that's easier and more efficient.
Thanks again guys. You've done an excellent job so far helping me with my problems.
Enter your message below
Sign in or Join us (it's free).