ALX
Well-known member
In a few forms in my app, (for demo purposes), I momentarily take control of the mouse cursor, and I use the following statements:
This generates a warning in the IDE, I presume to mean that the current cursor position cannot be evaluated while in the IDE. This is fine, and I understand why this is the case. The issue is that other warnings may be obscured by all of these cursor position warnings. I also tend to shut off the display of warnings due to these cursor position related warnings, and that truely does obscure any other warnings that I would like to be aware of. Is there a different way to accomplish the same thing (CurPos = Cursor.Current.Position) that will not generate these warnings?
VB.NET:
CurPos = Cursor.Current.Position