bold selected text

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

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

can someone provide me code sample?

thanks.
 
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
 
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.
 
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.
 
mike said:
trying to convert selected text in a textbox to bold font.


Take a look at the richtextbox control and its 'SelectionFont' property.
 
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
 
Back
Top