is there a command that resets the project? something that clears all text boxes ect. Thanks YT
Last edited by YT100; Mar 18th, 2007 at 06:23 AM. Reason: resolved
In run-time? If so, you can do a loop: Code: Dim frm As Form Dim ctl As Control For Each frm In Forms For Each ctl In frm.Controls If TypeOf ctl Is TextBox Then ctl.Text = vbNullString ElseIf TypeOf ctl Is Label Then ctl.Caption = vbNullString Else '... End If Next Next
Dim frm As Form Dim ctl As Control For Each frm In Forms For Each ctl In frm.Controls If TypeOf ctl Is TextBox Then ctl.Text = vbNullString ElseIf TypeOf ctl Is Label Then ctl.Caption = vbNullString Else '... End If Next Next
Use [CODE] tags and rate useful posts VB: MSDN VBnet DevX vbAccelerator DB: W3Schools SQL TechOnTheNet's Oracle/PLSQL ConnectionStrings Misc (IT): Use XP look (manifest) in your apps (sample) MZ-Tools (free and cool VB add-in) Deploy your apps with Inno Setup Misc: Zeitgeist Movie ... so make the best of this test and don't ask why, it's not a question, but a lesson learned in time...
thats done it, thanks heaps
You're welcome
Forum Rules