Clearing all fields in an application form,reset for next customer.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Clearing all fields in an application form,reset for next customer.

  1. #1
    Join Date
    Nov 2012
    Location
    Ireland
    Posts
    9

    Clearing all fields in an application form,reset for next customer.

    I can clear all the text boxes when i press reset button ,ie txtName.text = "".... i can clear the combo boxes in the same way,but how do i reset the radiobuttons and checkboxes that have been selected.

  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Clearing all fields in an application form,reset for next customer.

    option1.value = False

    check1 = vbUnchecked

  3. #3
    Join Date
    Nov 2012
    Location
    Ireland
    Posts
    9

    Re: Clearing all fields in an application form,reset for next customer.

    Quote Originally Posted by d.paulson View Post
    option1.value = False

    check1 = vbUnchecked
    Thanks dude,i was wondering if you could clarify your answer for me,i'm a total novice here.
    Much thanks anyway

  4. #4
    Join Date
    Jul 2005
    Posts
    1,074

    Re: Clearing all fields in an application form,reset for next customer.

    To clear or turn off an Option button:
    Option1.Value = False

    To clear a CheckBox:
    Check1 = vbUnChecked
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  5. #5
    DataMiser is online now Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,851

    Re: Clearing all fields in an application form,reset for next customer.

    Typically I will write a little sub routine to reset the form.
    This sub would contain code to clear textboxes, checkboxes, option buttons, combos and set any defaults that may need to be set.
    I would call this when I load the form and at any time the values need to be reset during execution.
    Always use [code][/code] tags when posting code.

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center