During migration from VB to VB.NET if you
are getting error as "’Value of type
'Microsoft.VisualBasic.FileAttribute' cannot be converted to
'System.Windows.Forms.Cursor'." with following type of code
'UPGRADE_ISSUE:
Unable to determine which constant to upgrade vbNormal to. 'UPGRADE_ISSUE:
Screen property Screen.MousePointer does not support custom mousepointers.
'UPGRADE_WARNING:
Screen property Screen.MousePointer has a new behavior.
System.Windows.Forms.Cursor.Current = vbNormal
Solution: -
Use “Cursors.Default” as below
System.Windows.Forms.Cursor.Current =
Cursors.Default
Thankyou!
ReplyDeleteThank You!
ReplyDeletethis isnt the first upgrade issue your posts help me with