We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I customize the cursor in the EditControl?

Platform: WinForms |
Control: EditControl |
Published Date: April 30, 2011 |
Last Revised Date: July 10, 2014


This sample will guide you on how to customize the cursor in EditControl.

Please refer to the code snippets below and the sample attached to know how to customize the Cursor in EditControl.


private Cursor currentCursor = Cursors.Default;

this.editControl1.Cursor = this.currentCursor;

private void menuItem_Click(object sender, System.EventArgs e)


MenuItem mitem = sender as MenuItem;

if (mitem.Text == "AppStarting")

this.currentCursor = Cursors.AppStarting;

if (mitem.Text == "Arrow")

this.currentCursor = Cursors.Arrow;

if (mitem.Text == "Cross")

this.currentCursor = Cursors.Cross;

if (mitem.Text == "Default")

this.currentCursor = Cursors.Default;

if (mitem.Text == "Hand")

this.currentCursor = Cursors.Hand;

if (mitem.Text == "Help")

this.currentCursor = Cursors.Help;

if (mitem.Text == "HSplit")

this.currentCursor = Cursors.HSplit;

this.editControl1.Cursor = this.currentCursor;



Private currentCursor As Cursor = Cursors.Default

Me.editControl1.Cursor = Me.currentCursor

Private Sub menuItem_Click(sender As Object, e As System.EventArgs) Handles menuItem10.Click, menuItem11.Click, menuItem12.Click, menuItem13.Click, menuItem14.Click, menuItem15.Click, menuItem16.Click, menuItem17.Click, menuItem18.Click, menuItem19.Click, menuItem20.Click, menuItem21.Click, menuItem22.Click

Dim mitem As MenuItem = sender

If mitem.Text = "AppStarting" Then

Me.currentCursor = Cursors.AppStarting

End If

If mitem.Text = "Arrow" Then

Me.currentCursor = Cursors.Arrow

End If

If mitem.Text = "Cross" Then

Me.currentCursor = Cursors.Cross

End If

If mitem.Text = "Default" Then

Me.currentCursor = Cursors.Default

End If

If mitem.Text = "Hand" Then

Me.currentCursor = Cursors.Hand

End If

If mitem.Text = "Help" Then

Me.currentCursor = Cursors.Help

End If

If mitem.Text = "HSplit" Then

Me.currentCursor = Cursors.HSplit

End If

Me.editControl1.Cursor = Me.currentCursor

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon