bold selected text

M

mike

trying to convert selected text in a textbox to bold font.

can someone provide me code sample?

thanks.
 
C

Cor Ligthert[MVP]

Mike,

In my idea is what you want with a textbox impossible (or you should set
your computer in any way only displaying bold characters).

Use for your purpose the richtextbox.

Cor
 
T

Tom Shelton

trying to convert selected text in a textbox to bold font.

can someone provide me code sample?

thanks.

Just to make sure you understand Cor's message... He's telling you,
correctly, that you can't get there from here. In a normal TextBox
contorl, the font is either bold or it's not. You can't have some
bold, some not bold. To accomplish that, you need to use a
RichTextBox control.
 
J

Jack Jackson

trying to convert selected text in a textbox to bold font.

can someone provide me code sample?

You can't do that. A Textbox has one Font property that applies to
all of the text.
 
H

Herfried K. Wagner [MVP]

mike said:
trying to convert selected text in a textbox to bold font.


Take a look at the richtextbox control and its 'SelectionFont' property.
 
C

Cor Ligthert[MVP]

Herfried,

It is long ago that we have heare "YodaLeay ahoe" or whatever they do it in
Austria.

:)

(just smiling friday as you know)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top