|
-
Aug 29th, 2005, 04:15 AM
#1
Thread Starter
New Member
Mouse over forum = move forum to new random location?
hey, i need help making a program than when the mouse it placed over the forum the forum automatically jumps to a new location on the screen, therefore making it like a game of cat and mouse, please help me out.
-
Aug 29th, 2005, 01:30 PM
#2
Lively Member
Re: Mouse over forum = move forum to new random location?
This forum?
-
Aug 29th, 2005, 01:31 PM
#3
Re: Mouse over forum = move forum to new random location?
Use the MouseMove event of the form, changing the Top & Left properties.
Tg
-
Aug 29th, 2005, 01:33 PM
#4
Re: Mouse over forum = move forum to new random location?
Or use the .Move method of the fom to do it in one line of code in the MouseMove event.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 29th, 2005, 01:51 PM
#5
Lively Member
Re: Mouse over forum = move forum to new random location?
VB Code:
Me.Move Math.Rnd * (Application.Width - Me.Width), Math.Rnd * (Application.Height - Me.Height)
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
|