guitardave78
Programmer
Hey all 
How can I put some tags around text selected in a text box?
I thought
may do it but no luck!!
}...the bane of my life!
How can I put some tags around text selected in a text box?
I thought
Code:
Dim strSelText As String
strSelText = Me.txtNews.SelectedText.ToString
If (strSelText.Length) > 0 Then
Me.txtNews.Text = Replace(Me.txtNews.Text.ToString, strSelText, "[b]" & strSelText & "[/b]", Me.txtNews.SelectionStart, 1)
End If
may do it but no luck!!
}...the bane of my life!