We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sample for MiniToolbar with RichTextBox formatting

Thread ID:





144890 May 27,2019 09:08 PM UTC May 29,2019 01:06 PM UTC WinForms 3
Tags: MiniToolBar
Emilio Grimaldo
Asked On May 27, 2019 09:08 PM UTC

I am needing a RichTextBox on my WinForms application that has BASIC text formatting capabilities such as bold, italics, underline, color and alignment. I ran into the MiniToolbar control that shows exactly what I am looking for but when I use it none of the text formatting items are there.

Where do I find the appropriate sample online? The link below has just plain information.

Subburaj Pandian Veluchamy [Syncfusion]
Replied On May 28, 2019 02:10 PM UTC

Hi Emilio, 
Thank you for contacting Syncfusion support.  
Based on the information provided, the ToolStripItems click events can be used to achieve your  
requirement of "MiniToolBar with RichTextBox formatting" in WinForms.  
We have prepared sample based on your requirement,   
In the sample, we did the text formatting, bold, italic, underline and TextHighLight color according to your requirement. 
We hope this helps. Please let us know, if you need any further assistance. 
Subburaj Pandian V 

Emilio Grimaldo
Replied On May 28, 2019 07:58 PM UTC

Thanks! I am playing with it and modifying the sample so that I can apply several attributes (bold+italics for example) and that is working fine. Haven´t quite figured out how to get the SplitButton to pop up the color picker dialog but I changed it to use a regular toolstripbutton and pop up the ColorUI control when it gets clicked.

In the sample there is something I do not understand and that is that the B|I|U|A buttons are not declared as child items of the MiniToolbar, but rather as great grandchildren. First there is a panel as single child item of the toolbar. Then there is another panel as child of that first panel (grandchile) and then on this 2nd panel the buttons are defined as great.grandchildren. Is there a particular reason for that?

Subburaj Pandian Veluchamy [Syncfusion]
Replied On May 29, 2019 01:06 PM UTC

Hi Emilio, 
Thank you for the update. 
We have prepared the sample for ToolStripSplitButton with pop up the ColorPickerUIControl and there is no reason for adding the button as grandchildren of MiniToolBar, we just customize our sample. Now, we have modified the sample and add the ToolStripButton as direct child of MiniToolBar. 
Please refer the following sample, 

Please let us know, if you have any query.
Subburaj Pandian V 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon