hie
if the user, after working with the form wishes to reset it, how can it be done.
will me.refresh() help.
wht is it used for?
babbu
-12
Posting Whiz in Training
Recommended Answers
Jump to Postno. me.refresh will just update
its actually depends on what exactlly you wish to reset like textboxes, checkboxes and so on.
you could do an function like:private sub ClearCtrl for each ctrl as control in Form1 try if typeof(ctrl) is checkbox then ctrl.checked=false if typeof(ctrl) is …
Jump to PostI don't get a word "reset". Do you want to reset the state of controls or just clear the text or setting up selectedindex with 0?
For Each c As Control In Me.Controls If TypeOf c Is TextBox Then CType(c, TextBox).Text = String.Empty End If Next
All 8 Replies
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
kvprajapati
1,826
Posting Genius
Team Colleague
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
kvprajapati
commented:
No. It won't work.
-2
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
kvprajapati
1,826
Posting Genius
Team Colleague
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
Arunabh Nag
0
Light Poster
sknake
1,622
Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.