Rich text box justify.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I'm in trouble trying to figure out how can I justify text in a rich
text control on my Visual basic 6.0 aplication. Or.. is there any other way
to do it?. Please help. Send you my cordial regards.

Juan Erickson.
 
Hi Jo,

JoErickson said:
Hello, I'm in trouble trying to figure out how can I justify text in a
rich
text control on my Visual basic 6.0 aplication. Or.. is there any other
way
to do it?.

Notice that this is a VB.NET group. There is a separate group for questions
on VB6's controls available: microsoft.public.vb.controls. You will more
likely get an answer there.
 
Juan,

In vb.net you can simply code:
richtextbox.SelectionAlignment = HorizontalAlignment.Center

It's been a while since I did VB 6.0, but there may be a similar property
like:
rtb.SelectedText.Align = 1

Just a guess.
 
aRBee said:
It's been a while since I did VB 6.0, but there may be a similar property
like:
rtb.SelectedText.Align = 1

VB6 code:

\\\
Me.RichTextBox1.SelAlignment = RtfRight
///
 
Back
Top