I am using .NET winforms.
I have a groupBox that contains a set of controls like textbox, dropdown….
How can I control the fields which are available in groupBox?
Example:
I need to clear all the control fields.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will have to write all the code as normal, but you might be able to use a loop for certain things as shown in this code (note, this code is just to show the structure, it’s not going to compile as is):
It might be worth creating your own user control that contains the groupbox with all the other controls inside, so that you don’t end up with too much code in one form.