• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Rich Text Editing Toolstrip Like MS Word

Hello,

I had a VS 2K3 application which I have upgraded to VS 2K5 and .Net 2.0.  This application had a form which allowed the user to enter notes in a richtext format.  It had toolbars which allowed the user to adjust the font size and font type just like in MS Word.

I am having trouble getting the same functionality in VS 2K5.  I have re-created the toolbar now as a toolstrip and have added the buttons with the dropdown arrows for font size and font type.  However, I am unable to get the buttons to list the different font sizes/types when the user clicks the down arrow on the toolstrip button.

Has anyone accomplished this or have a link to a good tutorial on this matter?

Thanks,
-Adam
0
Torrwin
Asked:
Torrwin
1 Solution
 
kdwoodCommented:
Torrwin,

You can use the Font Dialog control by dragging it from your toolbox onto your form.   Then on a button click event you show the dialog like this:

FontDialog1.show

However, I realize this will not give you the font list directly on your toolbar.  Check out these free controls that have already done the work for you.

http://www.codeproject.com/cs/combobox/nishfontcombo.asp
http://www.vbaccelerator.com/home/NET/Code/Controls/ListBox_and_ComboBox/Font_Picker/article.asp

Best regards,

Keith

0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now