|
-
Mar 15th, 2003, 10:34 AM
#1
Thread Starter
Lively Member
Clear All Textbox
i have few text boxes on my form.
but they are inside one or more group boxes.
means they are directly not placed on the form.
and there are more than one group box on the form
i want to clear all the text boxes.
how do i do that
-
Mar 15th, 2003, 10:58 AM
#2
Frenzied Member
you can loop thru the group boxes and set each textbox to an empty string.
Dont gain the world and lose your soul
-
Mar 15th, 2003, 12:01 PM
#3
Sleep mode
try this
VB Code:
Dim c As Control
For Each c In Me.Controls
If TypeOf ctrl Is TextBox Then
c.Text = ""
Next
END if
-
Mar 16th, 2003, 05:23 PM
#4
yay gay
lol pirate that wont work for what he asked for, he says that the txtboxes are in group boxes then that code simple wont work...what he'll have to do is like the other guy said make a loop thru the form looking for txtboxes and groupboxes..and when he finds groupboxes he will have to make another loop thru all it's controls looking for txtboxes
\m/  \m/
-
Mar 16th, 2003, 05:38 PM
#5
Sleep mode
Sorry, I should read the post carefully next time
-
Mar 16th, 2003, 05:42 PM
#6
yay gay
i will forgive u this time, next time i wont be so soft
\m/  \m/
-
Mar 16th, 2003, 05:44 PM
#7
Sleep mode
Originally posted by PT Exorcist
i will forgive u this time, next time i wont be so soft
lol .
-
Mar 17th, 2003, 10:02 PM
#8
Frenzied Member
What about making the different sets of TextBoxes into collections (arrays of just TextBoxes)? Wouldn't that work as well?
~Peter

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|