Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Mouse Actions to change the command buttons shapes...
Author:
RAMESH BABU
E-mail:
Click to e-mail author
Submitted:
3/12/2002
Version:
VB5
Compatibility:
VB5, VB6
Category:
Graphics
Views:
9840
Mouse Actions to change the command buttons shapes and positions.
Declarations:
'place the mouse over the textfield to see the variations. 'put one command button ,one textbox and a timer with an interval of 50.
Code:
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim i, j i = 5000 j = 5000 Command1.Move i * Rnd, j * Rnd End Sub Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim i, j i = 5000 j = 5000 Command1.Move i * Rnd, j * Rnd End Sub Private Sub Timer1_Timer() Command1.BackColor = QBColor(Rnd * 15) End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement