Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VB Focus on Certain Character in TextBox

$
0
0
Hello again guys,

I have a tabbed Rich Text Editor (I use CType to control the text box, so keep that in mind). Anyway, I need to find a way to focus on a certain character in the text. For example, if the text says:

<span></span>

I would like it to focus in between the two span tags. Also, my other problem is that I want the text to be inputted in a specific position in the rich text box. For example, if I type:

<html>
<body>
</body>
</html>

If I say: CType(TabControl1.SelectedTab.Controls.Item(0), RichTextBox).Text = CType(TabControl1.SelectedTab.Controls.Item(0), RichTextBox).Text + "SOMETHING"
The RichTextBox will say

<html>
<body>
</body>
</html>
SOMETHING

. Thanks in advance.

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>