Results 1 to 12 of 12

Thread: Cursor Style

  1. #1

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Cursor Style

    Does anyone knows if it is possible and how, if so, to change cursor style on a textbox?

    Thanks

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Cursor Style

    In the properties of the textbox - change Mousepointer to whatever you want.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Cursor Style

    Quote Originally Posted by Static
    In the properties of the textbox - change Mousepointer to whatever you want.
    Welcome to the forums.

    To embellish a bit.

    Set the MousePointer property to 99 - Custom
    Set the MouseIcon property to whatever you want.

  4. #4
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    3rd rock from the sun
    Posts
    360

    Re: Cursor Style

    and welcome to the forums!

  5. #5
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Cursor Style

    Welcome to the forum!

    First select your textbox
    From properties window look for Mousepointer
    Select Custom-99
    Select MouseIcon property then
    Use any icon you want.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  6. #6
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Cursor Style

    Ahh yes.. as Hack said theres that too.. (I was just thinking of the other choices available as standard cursors )

    but yes, if u want a custom cursor then theres your answer
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  7. #7

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Re: Cursor Style

    Thank you everybody for the wellcome

    I'm not refering to the mouse pointer, but to the cursor inside the textbox

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

    Re: Cursor Style

    Thats called a caret but whouldnt it be confusing to have it changed to something else?
    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

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Cursor Style

    Quote Originally Posted by reisve
    I'm not refering to the mouse pointer, but to the cursor inside the textbox
    That is refered to as a "caret".

    See numtel's post here

  10. #10

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Re: Cursor Style

    no. I want to change it to a block. How can I do it?

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Cursor Style

    Quote Originally Posted by reisve
    no. I want to change it to a block. How can I do it?
    Did you try numtel's code example? It does change it to a block.

  12. #12
    Member
    Join Date
    Apr 2006
    Posts
    44

    Re: Cursor Style

    Hi. Welcome. It sounds like what you are asking about is called the "caret." I recently asked what may be a very similar question to yours, if not the exact same question.

    Here is a link to all the helpful answers I was given. It worked for me.

    http://www.vbforums.com/showthread.p...ighlight=caret

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