PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Mouse over forum = move forum to new random location?-VBForums
Results 1 to 5 of 5

Thread: Mouse over forum = move forum to new random location?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    13

    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.

  2. #2
    Lively Member
    Join Date
    Jun 2005
    Posts
    112

    Re: Mouse over forum = move forum to new random location?

    This forum?
































  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    32,730

    Re: Mouse over forum = move forum to new random location?

    Use the MouseMove event of the form, changing the Top & Left properties.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5
    Lively Member
    Join Date
    Jun 2005
    Posts
    112

    Re: Mouse over forum = move forum to new random location?

    VB Code:
    1. 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
  •  



Featured


Click Here to Expand Forum to Full Width