|
-
Nov 28th, 2001, 08:38 AM
#1
Thread Starter
New Member
-
Nov 28th, 2001, 08:41 AM
#2
Frenzied Member
Try putting it into a PictureBox, and make the picture box have borderstyle = vbNone. Then use the MouseMove event to change colors.
-
Nov 28th, 2001, 08:54 AM
#3
-= B u g S l a y e r =-
VB Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.BackColor = Me.BackColor + 200
End Sub
-
Nov 28th, 2001, 09:00 AM
#4
Frenzied Member
Peet:
That code will crash if you move the mouse around on the box a lot ("Overflow" errors)
-
Nov 28th, 2001, 09:02 AM
#5
-= B u g S l a y e r =-
details, details, details
VB Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
On error Goto xit
Me.BackColor = Me.BackColor + 200
Exit Sub
xit:
Me.BackColor = 0
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|