Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
hello friends,
Smile | :) i am finding that how to add .cur file in our project i tried a lot but i couldn't get it.
if we add .cur file in this path than what happen??
==>C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\VisualBasic\1033\
Posted 26-Sep-10 20:51pm
Henry Minute at 27-Sep-10 8:35am
Before you use the answer given by prerakpatel you will probably need to unpack the zip file that you refer to.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Go to Project => Properties, Resource tab. Click the arrow on the "Add Resource" button, Add Existing File and select your .cur file.
And in your code, use -
Dim ms As New System.IO.MemoryStream(My.Resources.Cursor1)
Button1.Cursor = New Cursor(ms)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 696
1 OriginalGriff 478
2 Tadit Dash 400
3 sanket saxena 337
4 Peter Leow 228
0 Sergey Alexandrovich Kryukov 11,890
1 OriginalGriff 7,335
2 Peter Leow 5,003
3 Abhinav S 3,943
4 Maciej Los 3,575

Advertise | Privacy | Mobile
Web01 | 2.8.140421.2 | Last Updated 27 Sep 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid