Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
so as an example I have two textboxes, in one I put the numbers like 1 to 100 and in the other one if I put anything between 1-100, it should say Found, if I put anything that's not on the list, it should say NOT FOUND. PS: using Visual Studio 2008.

Thanks!!!!

What I have tried:

I have made the structure but still have not done any coding since I m new to this and do not understand it that well
Posted
Updated 16-Jul-17 9:14am
v2
Comments
Joezer BH 16-Jul-17 9:37am    
Your question is quite impossible to parse...

1 solution

in .net

use Textbox.Text property

Code part
If Textbox2.Text = Textbox1.Text Then
Msgbox ("Found")
Else
Msgbox ("Not Found")
End If


You can use this code with Button Click Event or Textbox Textchanged Event

Here is one another issue that Textbox1.Text can be substring of Textbox2.Text
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900