ukjock Posted February 20, 2004 Posted February 20, 2004 I did this in vb6 and I can not remember for the life of me how, now I want to do it in vb.net I read the first 2 characters of a textbox as the user inputted their data. And then I displayed a certain image if the dpending on what the first 2 characters of the box are. Can anyone please help me out! Thanks in advance Chris Quote ----------------- It�s always funny until someone gets hurt� Then it become hilarious!
Moderators Robby Posted February 20, 2004 Moderators Posted February 20, 2004 dim s as string = "hello" s = textbox1.substring(0,2) s will equal "he" Quote Visit...Bassic Software
*Gurus* Derek Stone Posted February 20, 2004 *Gurus* Posted February 20, 2004 Use the StartsWith() method instead. Quote Posting Guidelines
ukjock Posted February 21, 2004 Author Posted February 21, 2004 Superb Derek Stone... worked a treat Thanks for your help guys! It is much appreciated. chris Quote ----------------- It�s always funny until someone gets hurt� Then it become hilarious!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.