selecting and formating text in richtextbox control vb6
- by Smith
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