TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
User Defined Cursor in C#
Vineet Kumar Saini
Oct 20, 2011
14.5
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
This blog shows how to make a user defined cursor in c#.
user defined cusor.zip
Introduction
Basically cursor is a mouse pointer. Mouse Pointer means "a point which is controlled by the mouse". Cursor is a indicator which is handled by the mouse on the computer screen. By default cursor shapes like as arrow, but we can make the user defined cursor according to our choice.
How to make user defined cursor
Open visual studio--->
WindowsFormsApplication
(c#)--->go on solution explorer--->WindowsFormsApplication1--->right click--->add--->new item.
Then choose cursor file--->add.
Now one can make cursor according to our choice (likes below image)--->save file.
Then coding on form load
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Windows.Forms;
namespace
user_cusor
{
public
partial
class
Form1
:
Form
{
public
Form1()
{
InitializeComponent();
}
}
private
void
Form1_Load(
object
sender,
EventArgs
e)
{
this
.Cursor=
new
Cursor
(
"
e:\\cursor1.cur
"
);
}
}
}
Output
Run the application (press F5)
.
Next Recommended Reading
Saving Excel File Data To SQL Server Database Using Windows Desktop Application C#