isnoend2001
asked on
richtextbox selbullet problem
Hi experts
When i save a rtb with a bulleted list everything is fine until i reopen this file.
when i reopen i have a few very small bullets on the next line after the bulleted list.
What are these? And do i remove thwm?
Thank you
When i save a rtb with a bulleted list everything is fine until i reopen this file.
when i reopen i have a few very small bullets on the next line after the bulleted list.
What are these? And do i remove thwm?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
used part of your code and think i have come up with a descent hack
Dim lPos As Long
lPos = InStrRev(rtbMain.Text, vbCrLf) 'This procedure selects the last line in rtb
If lPos > 0 Then lPos = lPos + 1
rtbMain.SetFocus
rtbMain.SelStart = lPos
rtbMain.SelLength = Len(rtbMain.Text) - lPos
rtbMain.SelText = Replace(rtbMain.SelText, Chr$(183) & Chr$(9), "")
rtbMain.SetFocus
rtbMain.SelStart = Len(rtbMain.Text)
need to test