steev Posted November 30, 2006 Posted November 30, 2006 I'm new to Visual basic and going through a set of beginner tutorials.I've made a form with textboxes.Question: When I scroll through all the textboxes and return to the first one - how do I write the code to say "clear the box and make it empty"I think it's an If..else statement but after days of frustration and searching online, I still can't find the answer!!Regards,Steve
neo Posted December 5, 2006 Posted December 5, 2006 (edited) slect text box and see the propertiesIn VB 6.0 remove existing text from Caption property.In VB2005 remove exsiting text from Text property. Edited December 6, 2006 by neo_matrix.rs
IcemanND Posted December 5, 2006 Posted December 5, 2006 In VB6 caption is for a label not a textbox. There is no caption property for a textbox. textbox.text="" like ColdFusion said should work for any VB textbox.
steev Posted December 12, 2006 Author Posted December 12, 2006 Thanks for your help - that works!!Regards,Steve
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now