zongoo Posted March 21, 2009 Share Posted March 21, 2009 Hi i want to get a specific text from a textbox even if there is some text in it allready like: textbox.text sdfsdfsdfsdfHELLOfjsdfjsdhfjsdh i want it to detect the HELLO text from the textbox, is there any way to do this? and if HELLO is in the textbox do a specific event. Link to comment Share on other sites More sharing options...
0 +Dick Montage Subscriber² Posted March 21, 2009 Subscriber² Share Posted March 21, 2009 So, your code would be: Get the textbox text If the textbox text contains hello then do an event What language? Link to comment Share on other sites More sharing options...
0 zongoo Posted March 21, 2009 Author Share Posted March 21, 2009 yeah thats how i want to do it, vb.net written in the second title ;) Link to comment Share on other sites More sharing options...
0 Ruffneckting Posted March 21, 2009 Share Posted March 21, 2009 If TextBox1.Text.Contains("HELLO") Then 'Do something End If Link to comment Share on other sites More sharing options...
0 zongoo Posted March 21, 2009 Author Share Posted March 21, 2009 oh my god is it really that simple? THANKS! EDIT: And it worked ;D Link to comment Share on other sites More sharing options...
0 Ruffneckting Posted March 21, 2009 Share Posted March 21, 2009 If you are using Visual Studio 2008 Express or not it should give you the command syntax as you type. You gotta love .NET ;) Link to comment Share on other sites More sharing options...
0 Bookieass Posted March 23, 2009 Share Posted March 23, 2009 If you are using Visual Studio 2008 Express or not it should give you the command syntax as you type.You gotta love .NET ;) +1 (Y) Link to comment Share on other sites More sharing options...
Question
zongoo
Hi i want to get a specific text from a textbox even if there is some text in it allready like:
textbox.text
i want it to detect the HELLO text from the textbox, is there any way to do this?
and if HELLO is in the textbox do a specific event.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts