Property UseDefaultMenu
UseDefaultMenu
Indicates whether SyntaxEdit control should use built in popup menu.
public virtual bool UseDefaultMenu { get; set; }
Property Value
Examples
Here is how to use a UseDefaultMenu in the C# code:
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
syntaxEdit1.UseDefaultMenu = false;
syntaxEdit1.ContextMenuStrip = MainContextMenu;
}
}
Here is how to use a UseDefaultMenu in the Visual Basic code:
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim syntaxEdit1 = New Alternet.Editor.SyntaxEdit(Me.components)
syntaxEdit1.UseDefaultMenu = False
syntaxEdit1.ContextMenuStrip = MainContextMenu
End Sub
End Class
Remarks
Set UseDefaultMenu property to false to specify a different context menu for the DefaultMenucontrol instead of built-in one.