Results 1 to 11 of 11

Thread: Hand cursor (VB) doesn't follow Link cursor (System)

  1. #1

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Hand cursor (VB) doesn't follow Link cursor (System)

    Hey all.
    I used my custom cursor package for Windows.

    "Hand" cursor is set for all buttons in a VB.NET form application project. But they refuse to follow system cursor pack. Despite of other cursors (Text beam, No, resize, etc.) which work properly.

    I just noticed that "Hand" cursor in VS could be not the same as "Link" cursor in System control panel.
    How can I rectify it?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Perhaps you could provide a series of steps that we could follow to reproduce the issue.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,945

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Is this a vb.net question? It looks more general Windows related.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Quote Originally Posted by Peter Swinkels View Post
    Is this a vb.net question? It looks more general Windows related.
    I interpreted it as saying that a change had been made in Windows that was expected to be respected in VB code but wasn't.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Thanks all for cooperation.
    Okay, I will provide some evidences and more details of my vb/win problem: (Via phone)
    Current cursor package is look like this: (General cursors are following main/default mouse settings)
    Name:  mouse pack.jpg
Views: 406
Size:  152.6 KB

    Even some particular cursor (which were commanded to follow) are actually working.
    Name:  no selected.jpg
Views: 370
Size:  92.3 KB -> Name:  no actual.jpg
Views: 360
Size:  59.3 KB

    But in "Hand" case or some say "Link" (Which link "is not a property of..." in set of cursors) looks like this:
    Name:  hand selected.jpg
Views: 326
Size:  105.6 KB -> Name:  hand actual.jpg
Views: 347
Size:  93.3 KB

    Link or hand, whatever it is, is not following the Windows cursor pack. How can I fix it?

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Ah... bottom line, VB isn't respecting the Schema cursors.

    What happens if you use the "No" cursor for the CheckBox?
    Does it then use the right cursor?


    -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??? *

  7. #7

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Quote Originally Posted by techgnome View Post
    Does it then use the right cursor?
    Yes sir, it does.

    Actually I tested here:
    Quote Originally Posted by pourkascheff View Post
    Even some particular cursor (which were commanded to follow) are actually working.
    Name:  no selected.jpg
Views: 370
Size:  92.3 KB -> Name:  no actual.jpg
Views: 360
Size:  59.3 KB
    I think a hidden header code to make equal the Cursor.Hand and Cursor.Link would rectify the matter which I am not aware of.

  8. #8

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Quote Originally Posted by jmcilhinney View Post
    Perhaps you could provide a series of steps that we could follow to reproduce the issue.
    No codes were applied. Only control properties (visually) has been changed.

    Quote Originally Posted by jmcilhinney View Post
    I interpreted it as saying that a change had been made in Windows that was expected to be respected in VB code but wasn't.
    Exactly what it is.

  9. #9
    Frenzied Member
    Join Date
    Jul 2011
    Location
    UK
    Posts
    1,335

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    (looking at the Cursors Class source code) it appears the hand cursor and half a dozen other cursors are not mapped to the system cursors. They are hard coded as resources in the System.Windows.Forms.dll assembly.

    If you can find the .cur file for the hand cursor you want to use, you could copy it to your project and access it as:
    Code:
    ConnectionStatus.Cursor = New Cursor("Your Path\To\yourhand.cur")

  10. #10
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    Quote Originally Posted by pourkascheff View Post
    No codes were applied. Only control properties (visually) has been changed.
    Stop trying to provide as little information as possible and starting making the effort to help us help you. It would appear that you also made some changes in Windows so how about you do as I asked and provide a series of steps that we can follow to reproduce the issue? Frankly, I don't care any more. If you're going to make us drag every bit of information out of you then why should we bother?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  11. #11
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,945

    Re: Hand cursor (VB) doesn't follow Link cursor (System)

    @jmcilhinney: At least he isn't dumping a lot of irrelevant info - I know some people may never had to chance to learn proper english but it's even more trouble to figure out what people want when they write in broken english.

    @pourkascheff:
    And, there is no need to take pictures with your phone: https://www.screentogif.com/. If that's too much trouble: https://www.businessinsider.nl/how-t...onal=true&r=US.

Tags for this Thread

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