Results 1 to 5 of 5

Thread: How to resize the mouse pointer

  1. #1

    Thread Starter
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    150

    How to resize the mouse pointer

    Hello friends, I want to resize the mouse pointer

    I did not find any code or examples

    Please help in this regard

  2. #2
    Hyperactive Member
    Join Date
    Jul 2020
    Posts
    370

    Re: How to resize the mouse pointer

    The easiest way is to create your own cursor, remember the old one, set your own, and when the program exits, restore the previous cursor.
    Functions required:
    Code:
    Private Declare Function SetCursor Lib "user32" (ByVal hcursor As Long) As Long
    Private Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Long, _
        ByVal lpCursorName As Any) As Long
    Private Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" (ByVal lpFileName As String) As Integer
    Last edited by Argus19; Dec 5th, 2021 at 11:03 AM.

  3. #3
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: How to resize the mouse pointer

    Out of interest why do you need to do this? Are you wanting to do this for Windows entirely or just your own application?

  4. #4
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: How to resize the mouse pointer

    Quote Originally Posted by Mojtaba View Post
    I want to resize the mouse pointer
    I'd like to know precisely what you mean by this.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  5. #5
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,721

    Re: How to resize the mouse pointer

    theres an option to change mouse point in your components settings. just look there!

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