you just need to add a class + name it 'create', then you can paste the code into it.
you pass any bitmap to it. if you want transparent areas in the bitmap, use the bitmaps maketransparent method before you call the createcursor function.
i have problem i make what you sayd but when i start i get error
Error 1 Name 'CreateCursor' is not declared.
i make new class with the name that you say insert the text i removed lines 1 2 3 .. and ' and # that are and add in Form1_Load the code and the words are underlined or can you make a full program with that cursor only and share me
thanks i see the code is alot diferent that you show me before
not really. i just copied + pasted it from this thread. i changed Public Class to Friend Class, as i told you you should. the only thing that is different is when calling the createcursor function, i used create.createcursor
1/ probably not, but i haven't tried it. edit: it doesn't work with an animated gif
2/ Dim textSize As SizeF = Me.CreateGraphics().MeasureString("Please wait", Me.Font, Me.Size, Drawing.StringFormat.GenericTypographic)
Dim img As New Bitmap(CInt(textSize.Width) + 5, CInt(textSize.Height) + 1)
Dim gr As Graphics = Graphics.FromImage(img)
gr.Clear(Color.White)
gr.DrawString("Please wait", Me.Font, Brushes.Black, 0, 0)
img.MakeTransparent(Color.White)
Me.Cursor = create.CreateCursor(img, 0, 0)
Last edited by .paul.; Mar 10th, 2010 at 06:03 PM.