Results 1 to 6 of 6

Thread: Invincible window

  1. #1

    Thread Starter
    Hyperactive Member TiPeRa's Avatar
    Join Date
    Apr 2001
    Location
    In between
    Posts
    464

    Question

    I don't know if I am going about this the correct way but…

    I am using an API call to hide the mouse cursor but it only works over the windows of your program. I want to make it work everywhere. My thoughts are that this could be done by maximising the form but making it invicible. One problem, I don't know how to do this.

    Are they any other methods that could be use?

    Thanks

  2. #2
    Megatron
    Guest
    Try the ShowCursor function.
    Code:
    Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
    
    Private Sub Form_Load()
        ShowCursor False
    End Sub
    
    Private Sub Form_Unload(Cancel As Integer)
        ShowCursor True
    End Sub

  3. #3

    Thread Starter
    Hyperactive Member TiPeRa's Avatar
    Join Date
    Apr 2001
    Location
    In between
    Posts
    464
    That is what I am already using. It works everywhere when run through Visual Basic but only works over the windows of your program when it is run from the compiled code.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Oh...invisible Thought you meant invincible...interesting prospect though...I'll have a look
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Megatron
    Guest
    What about setting Scree.MousePointer = 99, then set the MouseIcon to a null or blank cursor?

  6. #6

    Thread Starter
    Hyperactive Member TiPeRa's Avatar
    Join Date
    Apr 2001
    Location
    In between
    Posts
    464
    When compiled that only works over your programs windows.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width