Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
User Defined Cursor in C#
WhatsApp
Vineet Kumar Saini
13y
14.7
k
0
0
25
Blog
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)
.
Up Next
Saving Excel File Data To SQL Server Database Using Windows Desktop Application C#
Ebook Download
View all
GitHub Copilot - Coding with Copilot
Read by 2.7k people
Download Now!
Learn
View all
Membership not found