Results 1 to 4 of 4

Thread: Check Boxes!!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    28

    Check Boxes!!!

    Damn this is probably really easy to all of you, but im a beginner.
    Now, I have three check boxes one for italics, one for bold and one for underline and i have a rich text box. How would i change all the text in the rich text box depending on which check box i click?(without having to select it) thanks for help ,hepy

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    When you click them, have this:

    VB Code:
    1. Private Sub Bold_Click()
    2. RichTextBox.SelStart = 0
    3. RichTextBox.SelLength = Len(RichTextBox.Text)
    4. RichTextBox.SelBold = True
    5. RichTextBox.SelStart = 0
    6. End Sub


    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    28

    Thanks

    Thanks, yet again it worked

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Please put [Resolved] at the end of the topic name


    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

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