Category / Section
How to disable keyboard shortcuts for the WinForms SyntaxEditor (EditControl)?
1 min read
Disable keyboard shortcuts
To remove the keyboard shortcuts, you will first need to remove them from the context menu. Here is an example for removing some of the keyboard shortcuts.
C#
editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.N); editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.F); editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.S); editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.O); editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.Shift | Keys.Space); editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.Shift | Keys.F2);
VB
editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.N) editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.F) editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.S) editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.O) editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.Shift Or Keys.Space) editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.Shift Or Keys.F2)
Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/end-user-capability