is it possible 2 make a background on VB so when the mouse pointer goes over the background, the colour changes into different colours!! :) :) :D :cool:
Printable View
is it possible 2 make a background on VB so when the mouse pointer goes over the background, the colour changes into different colours!! :) :) :D :cool:
Try putting it into a PictureBox, and make the picture box have borderstyle = vbNone. Then use the MouseMove event to change colors.
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
Peet:
That code will crash if you move the mouse around on the box a lot ("Overflow" errors)
details, details, details :D
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