Help in Textbox 
Author Message
 Help in Textbox

Hi EveryBody:

In Vb.net,how can I read the textbox to see if it
contains special word decided by me?

For example:

I have word "Love", I want to read the textbox to know if
it contains word "love" or not ? How can I do that?

any help will be appeciated.

Regard's



Mon, 31 Oct 2005 20:19:24 GMT  
 Help in Textbox


Quote:
> Hi EveryBody:

> In Vb.net,how can I read the textbox to see if it
> contains special word decided by me?

> For example:

> I have word "Love", I want to read the textbox to know if
> it contains word "love" or not ? How can I do that?

> any help will be appeciated.

> Regard's

if mytxtBox.text.toLower().indexof("love",0) >-1 then
        'love is there
end if


Mon, 31 Oct 2005 20:35:39 GMT  
 Help in Textbox
Hello,


Quote:
> In Vb.net,how can I read the textbox to see if it
> contains special word decided by me?

> For example:

> I have word "Love", I want to read the textbox to know if
> it contains word "love" or not ? How can I do that?

\\\
If InStr(1, Me.TextBox1.Text, "love") Then
    MsgBox("Foo")
End If
///

Have a look at regular expressions.

Regards,
Herfried K. Wagner



Mon, 31 Oct 2005 21:03:19 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help! Need help with TextBox Cntrl

2. Help with textbox/rich scrolling to a position

3. HELP Formatting TextBox for whole numbers

4. need help with textbox validation problem

5. Help with textbox & date please

6. Newbie Needs Help on Textbox

7. Newbie needs help with TextBox

8. Please help with TextBox / Label properties

9. Help: Custom TextBox and ComboBox control issue

10. Help with TextBox

11. help with textbox

12. Help on textbox change event anomolies

 

 
Powered by phpBB® Forum Software