Urgent...Help me..

X

Xalmen Horski

Thank you for your help in Advance.

I have have string " hellow world "

In this this i need to have different font for "hellow"
and different font for "world" . Leater i would assing
this string to a textbox.

Any tricks and tips would appriciated.

-Thanks
Xalmen.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

I'd suggest using the RichTextBox control instead. You can manipulate font
and color settings even for a single character by using RichTextBox object
model, as far as I remember, so this may be just what you need.
 
X

Xalmen Horski

Lapshin
Thank you for your prompt suggestion.
I would check this class and its members/events.
But can i insert this control in a a cell of a DataGrid ?

Once again thanks for saving me lot of time.

Xalmen.

-----Original Message-----
Hi,

I'd suggest using the RichTextBox control instead. You can manipulate font
and color settings even for a single character by using RichTextBox object
model, as far as I remember, so this may be just what you need.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

Xalmen Horski said:
Thank you for your help in Advance.

I have have string " hellow world "

In this this i need to have different font for "hellow"
and different font for "world" . Leater i would assing
this string to a textbox.

Any tricks and tips would appriciated.

-Thanks
Xalmen.

.
 
H

Herfried K. Wagner

Hello,

Xalmen Horski said:
I have have string " hellow world "

In this this i need to have different font for "hellow"
and different font for "world" . Leater i would assing
this string to a textbox.

Use a RichTextBox instead:

\\\
With Me.RichTextBox1
.Text = "Hello World"
.Select(0, 5)
.SelectionColor = Color.Red
.Select(6, 10)
.SelectionColor = Color.Blue
.Select(0, 0)
End With
///

Regards,
Herfried K. Wagner
 
X

Xalmen

Wanger,
Thanks for your Help.
It works perfect with RichText box.
Thank you for u r Time.
Xalmen.
 
C

Claes Bergefall

I'm assuming you're talking about MSDN Magazine
Which issue is the article in?

/claes
 

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