|
-
Mar 24th, 2004, 02:54 AM
#1
Thread Starter
Junior Member
Clearing a form (Reset button)
Hello all,
I have a form with 22 textboxes and 11 labels.
You can click on a checklistbox with 11 items to activate (make it visible) textboxes and input labels. (i.e. you select Firstname and it sets the text propterty of the first label to "Firstname", textbox1.visible = true and textbox2.visible = true)
Now, people can enter information in those textboxes (startposition of the field in a record layout and size of the field in a recordlayout)
Now, people can make mistakes and I wanted to make a reset button. This button should clear the form. I was wondering if there is an easy way to do this? I can't think of anything, but to set the button code to:
Code:
Label1.Text = Nothing
Textbox1.Text = Nothing
Textbox1.Visible = False
Label2.Text = Nothing
Textbox2.Text = Nothing
Textbox2.Visible = False
I already created the statement for clearing out the checklistbox, which can be done in a loop...
Can anyone help me out?
If you need more info pls let me know!
Thanks in advance.
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
|