|
-
Aug 1st, 2004, 01:31 PM
#1
Thread Starter
Lively Member
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.
-
Aug 1st, 2004, 01:51 PM
#2
Frenzied Member
-
Aug 1st, 2004, 01:54 PM
#3
Frenzied Member
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.
-
Aug 1st, 2004, 02:13 PM
#4
Thread Starter
Lively Member
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).
-
Aug 1st, 2004, 02:38 PM
#5
Frenzied Member
Don't know. I'm using 2003 not 2005, but .SelBold, .SelFont and .SelBoldFont are not members of the System.Windows.Forms.RichTextBox.
-
Aug 1st, 2004, 02:54 PM
#6
Thread Starter
Lively Member
I gathered.
I doubt it will be rtf.FontProperties.
-
Aug 1st, 2004, 03:03 PM
#7
Frenzied Member
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:
RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold)
-
Aug 1st, 2004, 03:08 PM
#8
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|