Is it possible to have some text bold in a textbox and other text not so bold? I don't think so, but I would be ecstatic to find that I'm wrong. :)
Printable View
Is it possible to have some text bold in a textbox and other text not so bold? I don't think so, but I would be ecstatic to find that I'm wrong. :)
Not in a standard text box you cant.
If you use a RichTextBox then you can. You can find that as a component to add to your Project. Microsoft Rich TextBox Control
:?
Is there any way that you can save just the text that's in a richtext box without the formatting? That's why I chose not to use it (because of all of the extraneous code stuck in the saved file). I'm doing text editing for web stuff and only want the text but would like to use formatting to help me make sure I closed all my tags and whatnot. :)
There is indeed. You can use the SaveFile Method woth the flag rtfText. This forces it to save as a plain text file.
Code:RichTextBox1.SaveFile "c:\iain\iain.txt", rtfText
Well, now you've done it. You've made it worth it to try to revamp my whole dang application that is built around a textbox for editing rather than a RichTextBox.
Actually I really appreciate it. If I have any questions about things that used to work with a text box that don't with the RTFbox, can I e-mail you? I'll try to keep it down to 10 a day. :)