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?


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

Article ID: Published Date: Last Revised Date: Platform: Control:
317 04/30/2011 07/10/2014 WinForms EditControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

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

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