I'm kind of new to VB.NET and am trying to do something like the old Screen.MousePointer = vbHourglass.
I found something on the help, saying that I have to use System.Drawing.Cursor.Current, but when I put that into my code, I get an error, saying that does not exist. What's wrong here? Do I have to include something in my code in order to ues that?
Not sure if this is what you're looking for, but here's some MS sample code that sets cursor inside a class:
Code:
Protected Overrides Sub OnDragEnter(ByVal drgevent As DragEventArgs)
' The user is allowed to drag and drop member nodes only. If the user
' attempts to drag something else, display a Not-Allowed mouse cursor.
Dim obj As Object = drgevent.Data.GetData("XMLDocumentationTool.MemberNode", False)
If obj Is Nothing Then
drgevent.Effect = DragDropEffects.None
Else
drgevent.Effect = DragDropEffects.Copy
End If
MyBase.OnDragEnter(drgevent)
End Sub