Cursor objects to mousepointer numeric types ?

Posted on 2007-08-02
Medium Priority
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
  • 2
LVL 86

Accepted Solution

Mike Tomlinson earned 1000 total points
ID: 19621922
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
ID: 19622120
I would look at the bigger picture, since VB.NET provides different interfaces for what you could do in VB6.


Author Comment

ID: 19626769
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
ID: 19626910
Yes, but what are you trying to do?  Are you trying to "push" the current mouse pointer, and then reset it later?


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month16 days, left to enroll

850 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