selecting and formating text in richtextbox control vb6
Posted
by
Smith
on Stack Overflow
See other posts from Stack Overflow
or by Smith
Published on 2012-10-03T20:50:21Z
Indexed on
2012/10/03
21:38 UTC
Read the original article
Hit count: 174
i need to bold some text as i add them to the richtextbox control, currently here is my code
With txtDetails
If Not IsNullOrEmpty(title) Then
.SelStart = Len(.Text)
.Text = .Text & title
.SelLength = Len(title)
.SelBold = True
.SelLength = 0
.Text = .Text & vbNewLine
End If
If Not IsNullOrEmpty(value) Then
.Text = .Text & value & vbNewLine
End If
.Text = .Text & vbNewLine
End With
can anyone help me with the fix
© Stack Overflow or respective owner