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

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top