Results 1 to 2 of 2

Thread: reset programme

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    23

    Question

    Hi everybody!
    I am in the process of coding a small vb app. that collects info from the user in a series of text boxes, more of which become visible as the user progresses.I
    want a way of resetting the app. to its start up condition if the user enters the wrong data (start again kind of thing) could anyone tell me how to do this please?
    Thanks in advance

  2. #2
    Guest
    You mean reset the textboxes to a blank string?
    Code:
    Dim ctl As Control
    For Each ctl in Controls
        If TypeOf ctl Is TextBox Then ctl = ""
    Next ctl

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width