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?
private void
object
switch
case
// Bold Tool
this
break
// Italic Tool
// Underline Tool
UltraFormattedtextEditor does not support everythign that the RichTextBox supports, which is why you can't get numbering or bullets (can't remember if it supports indentation). I believe the UITypeEditor it uses was made available for public consumption, so you would be able to present one to users and they could use that, so you wouldn't have to write the ToolClick code yourself.
Brian Fallon"] UltraFormattedtextEditor does not support everythign that the RichTextBox supports, which is why you can't get numbering or bullets (can't remember if it supports indentation). I believe the UITypeEditor it uses was made available for public consumption, so you would be able to present one to users and they could use that, so you wouldn't have to write the ToolClick code yourself.
Brian,
Thanks for your response. I couldn't quite understand your answer. Sorry about that. So are you saying that there is no control from Infragistics which can support all these features in windows forms
I need a textbox with all basic features
Bold, Italics, Underline, Indentation, Bullets, Numbering, Cut, Copy, Paste.
Also, it needs to save the text into the database with the formatted text. For example, If I have made some text bold, and save the text, while I retrieve it should again have that text in Bold.
Please advise. By the way what is the control which is being used to write a post? It actually has all the features I wanted.
Thanks