Results 1 to 8 of 8

Thread: Bold [Resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79

    Bold [Resolved]

    I have VB 2005 (people tell me it's a simplifyed VB.net) and I don't know how to bold. I have looked though about 50 tutorials (MSDN google) and can't find any. Do any of you know?
    Last edited by Word2; Aug 1st, 2004 at 03:09 PM.



  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Question

    Bold what??
    ~Peter


  3. #3
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    I was going to ask the same thing. If you mean bold like changing the font, check out this recent thread http://vbforums.com/showthread.php?s=&threadid=298988

    If not, be a little more specific, maybe even post some code that you tried.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    For Rich Text. I have tryed:

    rtf.SelBold = True
    rtf.SelFont = Bold
    rtf.SelBoldFont

    And none seem to work.

    I want to make it so you type in a certain charator and it makes it bold (the bold part so far is the only problem).



  5. #5
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Don't know. I'm using 2003 not 2005, but .SelBold, .SelFont and .SelBoldFont are not members of the System.Windows.Forms.RichTextBox.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    I gathered.

    I doubt it will be rtf.FontProperties.



  7. #7
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Sorry, have not made the move to 2005 as I'm scared about betas and having production code. However, this works in 2003
    VB Code:
    1. RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold)

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    Thanks alot. It worked.
    And the beta is awesome!



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