// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void InitializeGcRichTextBox()
{
// Creates an instance of a GcRichTextBox control.
GcRichTextBox gcRichTextBox1 = new GcRichTextBox();
// Sets the ToolBarAllowToolTips to true for displaying the tool tips when mouse hovers over the toolbar items.
gcRichTextBox1.ToolBarAllowToolTips = true;
// Sets the ToolBarCanOverFlow to true. The toolbar will show the overflow button.
gcRichTextBox1.ToolBarCanOverFlow = true;
// Sets the toolbar docked to the top of the GcRichTextBox.
gcRichTextBox1.ToolBarDockPosition = ToolBarDockPositionStyle.Top;
// Sets the ToolBarRenderMode to System, the toolbar will display according current OS system.
gcRichTextBox1.ToolBarRenderMode = ToolStripRenderMode.System;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub InitializeGcRichTextBox()
' Creates an instance of a GcRichTextBox control.
Dim gcRichTextBox1 As New GcRichTextBox()
' Sets the ToolBarAllowToolTips to true for displaying the tool tips when mouse hovers over the toolbar items.
gcRichTextBox1.ToolBarAllowToolTips = True
' Sets the ToolBarCanOverFlow to true. The toolbar will show the overflow button.
gcRichTextBox1.ToolBarCanOverFlow = True
' Sets the toolbar docked to the top of the GcRichTextBox.
gcRichTextBox1.ToolBarDockPosition = ToolBarDockPositionStyle.Top
' Sets the ToolBarRenderMode to System, the toolbar will display according current OS system.
gcRichTextBox1.ToolBarRenderMode = ToolStripRenderMode.System
End Sub