WinForms


25
Dec 09

Reset all controls on form (Windows forms – C#)

Well i had a situation where i need to reset all controls (mostly Textboxes and Comboboxes) on form to their default (entry ready) state. Well, at first sight I was thinking it’s not a problem, my .net Win form have property called Controls – list of all controls on form. But problem was that i had overlapping panels which i used for positioning, and inside of panels was Group box control. So it’s allready complicated then at first sight.

I have created little Form helper which will help you reset all controls on form to their default state.
Continue reading →