Cursor objects to mousepointer numeric types ?

Posted on 2007-08-02
Last Modified: 2013-11-26
How do I convert cursor objects to mousepointer numeric types ?

I am converting VB6 and have a function argument which has become
a windows.forms.cursors object. The function requires an argument
which is a Short:


giving a compiler error.

Is there a conversion from cursors objects  to numerics ?

Question by:pillmill
    LVL 85

    Accepted Solution

    What is SetMPoint()?

    It doesn't seem to be a Win API or any built-in VB6 or VB.Net function.

    We may be of more help if you show us the original code for SetMPoint() and how you call it...
    LVL 96

    Expert Comment

    by:Bob Learned
    I would look at the bigger picture, since VB.NET provides different interfaces for what you could do in VB6.


    Author Comment

    SetMPoint ( arg As Short ) as Boolean
    is a custom mouse pointer.

    It sets:

    cursor = arg

    This also generates a compile error, since cursor is not a numeric in .NET.

    LVL 96

    Expert Comment

    by:Bob Learned
    Yes, but what are you trying to do?  Are you trying to "push" the current mouse pointer, and then reset it later?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now