Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Is there any control like rich text box for Winforms
posted

I need a richtextbox which can perform all the basic activities like Bold, Italic, Indent, Numbering, Bullets, say for example the control which I am typing it in right now. Is this control available in Winforms?

I am trying to use UltraFormattedtextEditor but we have to add all the tools to UltraToolbarManager and on click event of the button we need to handle something like this :

 

private void ultraToolbarsManager1_ToolClick
(object sender, ToolClickEventArgs e)
{
switch(e.Tool.Key)
{
case "StateButtonTool1": // Bold Tool
this.ultraFormattedTextEditor1
.EditInfo.PerformAction(
FormattedLinkEditorAction
.ToggleBold);
break;
case "StateButtonTool2": // Italic Tool
this.ultraFormattedTextEditor1
.EditInfo.PerformAction(
FormattedLinkEditorAction
.ToggleItalics);
break;
case "StateButtonTool3": // Underline Tool
this.ultraFormattedTextEditor1
.EditInfo.PerformAction(
FormattedLinkEditorAction
.ToggleUnderline);
break;
}
}

How do we handle for Indent, Numbering,
Bullets? Is there any other control which performs all
these actions without
writing the code for each button?