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
Page 1 of 1
What is the code for an empty textbox
#3
Posted 05 December 2006 - 11:00 AM
slect text box and see the properties
In VB 6.0 remove existing text from Caption property.
In VB2005 remove exsiting text from Text property.
In VB2005 remove exsiting text from Text property.
This post has been edited by neo_matrix.rs: 06 December 2006 - 10:38 AM
#4
Posted 05 December 2006 - 12:16 PM
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.
textbox.text="" like ColdFusion said should work for any VB textbox.
#6
Posted 12 December 2006 - 02:07 PM
Thanks for your help - that works!!
Regards,
Steve
Regards,
Steve
- ← Having some problems getting unrar.dll working.
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- Panel or Form? →
Share this topic:
Page 1 of 1



Help
Back to top









