word formatting bar
-
-
Is there a control I can add to the textbox that is like the "formatting bar" in Word. I need the user to be able to choose font, color, etc... The question is, do I have to make that panel/bar from scratch or can I import it as a control from anywhere?
You'll have to either write your own Toolbar code to handle what all the buttons are supposed to do or you can use a commercially available control to handle the Toolbar, still writing the code that does what the buttons say they do. A Textbox has very few properties that make it useful for editing and formatting like this. Why not use a RichTextBox control instead? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You'll have to either write your own Toolbar code to handle what all the buttons are supposed to do or you can use a commercially available control to handle the Toolbar, still writing the code that does what the buttons say they do. A Textbox has very few properties that make it useful for editing and formatting like this. Why not use a RichTextBox control instead? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
What I meant by textbox is RichTextBox, sorry. But is there a control for that or will I still have to write my own?
A Toolbar is just a collection of buttons and other controls. Clicking the button will fire an event that signals such, but it will not do whatever the button image says on it's own. You have to supply the code to Save, for example, or Save As, or change the Font of the selection and so forth. There is nothing that will do this for you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome