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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the cursor in the WinForms SyntaxEditor (EditControl)?

Platform: WinForms |
Control: EditControl

Customize cursor appearance

Please refer to the below code snippets explains how to customize the Cursor in SyntaxEditor (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 void menuItem_Click(Object sender, System.EventArgs e)
    Dim mitem As MenuItem = TryCast(sender, MenuItem)
    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


Reference link: https://help.syncfusion.com/windowsforms/syntaxeditor/appearance#customize-cursor-appearance

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

Live Chat Icon For mobile