Im tring to reset the controls on tabpage to there default settings, how do I do this?
Printable View
Im tring to reset the controls on tabpage to there default settings, how do I do this?
umm what do you mean default setting?
i guess their original setting before the user changed them
hmm, I;m not sure if there is an easy way to do this. I think you have to write the code for resetting all the textboxes/controls :(
edit: well you could do something like this to make it simpler... this is for textboxes, you can add other stuff yourself
VB Code:
Dim ctrl As Control For Each ctrl In TabControl1.TabPages(0).Controls If TypeOf ctrl Is TextBox Then ctrl.Text = "" End If Next
OK Thanks
I was hoping I wouldnt have to to that :(
aah sorry to post again, I edited the last post after you posted....:D see if that helps