Hi, I am new to this forum and i have a problem with part of my application. I did not like the cursors that you had to pick from so i made my own and found this script so that i could use them. Well the script does not work and here is the error i get, "Object reference not set to an instance of an object.". I dont get what im doing wrong but here is the code im using,
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim newCursor As New Cursor(My.Resou rces.ResourceMa nager.GetStream ("C:\My Documents\Forum s\Main page\images\Cur sors\Main.cur") )
Me.Cursor = newCursor
End Sub
Can somebody pleas tell me whats wrong with my code? Thanks for any help!!
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim newCursor As New Cursor(My.Resou rces.ResourceMa nager.GetStream ("C:\My Documents\Forum s\Main page\images\Cur sors\Main.cur") )
Me.Cursor = newCursor
End Sub
Can somebody pleas tell me whats wrong with my code? Thanks for any help!!
Comment