By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

how will i do in vb.net..............

P: n/a
in vb6
rtb.SelBold = Not (rtb.SelBold)

how will i do in vb.net?
regards

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* Supra <su*****@rogers.com> scripsit:
in vb6
rtb.SelBold = Not (rtb.SelBold)


\\\
Dim IsBold As Boolean = ((Me.RichTextBox1.SelectionFont.Style And FontStyle.Bold) = FontStyle.Bold)
Me.RichTextBox1.SelectionFont = _
New Font( _
Me.RichTextBox1.SelectionFont, _
DirectCast(IIf(IsBold, Me.RichTextBox1.SelectionFont.Style And Not FontStyle.Bold, Me.RichTextBox1.SelectionFont.Style Or FontStyle.Bold), FontStyle) _
)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

P: n/a
great. I got bold underline italic working . i'm doing irc chat similar
to mirc.
thank. 8-)
regards,
Herfried K. Wagner [MVP] wrote:
* Supra <su*****@rogers.com> scripsit:

in vb6
rtb.SelBold = Not (rtb.SelBold)


\\\
Dim IsBold As Boolean = ((Me.RichTextBox1.SelectionFont.Style And FontStyle.Bold) = FontStyle.Bold)
Me.RichTextBox1.SelectionFont = _
New Font( _
Me.RichTextBox1.SelectionFont, _
DirectCast(IIf(IsBold, Me.RichTextBox1.SelectionFont.Style And Not FontStyle.Bold, Me.RichTextBox1.SelectionFont.Style Or FontStyle.Bold), FontStyle) _
)
///


Nov 21 '05 #3

P: n/a
thank, Herfried.
regards,
supra

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.