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?
Printable View
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?
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.
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).
Don't know. I'm using 2003 not 2005, but .SelBold, .SelFont and .SelBoldFont are not members of the System.Windows.Forms.RichTextBox.
I gathered.
I doubt it will be rtf.FontProperties.
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)
Thanks alot. It worked.
And the beta is awesome!