VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t

by Bashar Lulu (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 8th May 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

A "Clear Screen" function to clear all your textboxes and comboboxes and checkboxes. Generic code that will work with any form. Using ONLY 6

Rate A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t



    'If you use this code, please email me saying so [email protected]
    Dim I as Integer
    For I = 0 to Me.Controls.Count-1
        If TypeOf Me.Controls(I) Is TextBox Then Me.Controls(I).Text = ""
        If TypeOf Me.Controls(I) Is ComboBox Then Me.Controls(I).ListIndex = -1
        If TypeOf Me.Controls(I) Is CheckBox Then Me.Controls(I).Value = 0
    Next
End Sub

Download this snippet    Add to My Saved Code

A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t Comments

No comments have been posted about A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t. Why not be the first to post a comment about A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t.

Post your comment

Subject:
Message:
0/1000 characters