VB6 had a span method, how do you do this in vb.net

G

Guest

In vb6 you could find text then span to include all text to a given point.


Public Sub Findd(RTF As RichTextBox, Find As String)

RTF.Find (Find)
textfind = RTF.Find(Find)
If textfind <> -1 Then
foundtxt = True
RTF.Span "@", True, True
RTF.SetFocus
Exit Sub
Else
foundtxt = False
Exit Sub
End If

End Sub


How do you do this or somthing like it in VB.net?
 
G

Guest

Thanks for the responce. I have seen this before and I have not been able to
find more info. I am not a pro. programmer, just a hobbyist. I need to see
examples to understand.
 

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