Code:Private Sub ClearTextControls() Dim ctl As Control For Each ctl In Form1 ' loop all controls on Form1 If TypeOf ctl Is TextBox Then ' If the control is a TextBox ctl.Text = vbNullString ' set its value to null End If Next ctl End Sub
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Error in ModuleThreaded View
|
Click Here to Expand Forum to Full Width |