Results 1 to 5 of 5

Thread: Formatting options in a textbox

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Virginia
    Posts
    55

    Unhappy

    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.
    Thanks,
    Chris

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    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
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Virginia
    Posts
    55

    Follow up

    :?
    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.
    Thanks,
    Chris

  4. #4
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    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
    Iain, thats with an i by the way!

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Virginia
    Posts
    55

    Angry Massive ReWrite...

    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.
    Thanks,
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width