BC42025 warning with "Cursor.Current = Cursors.WaitCursor"

I’m getting this warning BC42025 when I use Cursor.Current = Cursors.WaitCursor, what should I use instead? I don’t want to ignore this warning.

Warning BC4025:
"Severity Code Description Project File Line Suppression Status
Warning BC42025 Shared member, constant member, enum member, or nested type access through an instance; the qualifying expression will not be evaluated."

>Solution :

use

Imports System.Windows.Forms

that has cursor as object

Of course you can also qualify your cursor directly with

System.Windows.Forms.Cursor.Current 

Leave a Reply