需要帮助查找文本框中的整个单词 [英] Need a help on Finding a whole word in Textbox

查看:67
本文介绍了需要帮助查找文本框中的整个单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i是VB的新手。

以下是场景

我有2个文本框说Text1和Text2

i需要在整个单词约束的Text1中找到Text2.text

i想要为此编码。

请帮我解决这个问题。


示例场景:

Text1:





Hii




Text2:




点击查找按钮,它必须突出显示第一个嗨。对于第二次单击,它必须突出显示SeconfHi。对于第三次点击,它必须突出显示最后一个嗨而不是Hii


问候,

Den

Hi All,
i am new to VB.
below is the scenario
I am having 2 Textboxes say Text1 and Text2
i need to find the Text2.text in the Text1 with whole word constraint
i would like to get coding for this.
please help me on this.

Example Scenario:
Text1:
Hi
Hi
Hii
Hi

Text2:
Hi

when i click Find button it has to highlight the first "Hi". for the second click it has to highlight the Seconf "Hi". for third click it has to highlight the last "Hi" and not "Hii"

Regards,
Den

推荐答案

你呢?意思是TextBox1将包含文本Hi Hi Hii Hi。 ?
Hi, do you mean TextBox1 will contain the text "Hi Hi Hii Hi" ?


你能不能发布你试图解决这个问题的方法。
can you kindly post how you have tried to solve this.


这将显示text3中的字母,但我不知道如何在文本框中浏览一些文本。

This will be show the letter in text3 but i don''t know how to hilight some text in a textbox.

展开 | 选择 | Wrap | 行号


这篇关于需要帮助查找文本框中的整个单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆