Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.NET Windows Forms - Form Elements Variables?

Status
Not open for further replies.

vladibo

Programmer
Sep 14, 2003
161
CA
Is the there a way to see all the variables of one form (TextBox-es, RadioButton-s etc.) in System::Windows::Forms::Form?

If it was in web I could just iterate the content of POST data. But is it possible with System::Windows::Forms::Form?

My problem is that I have lots of inputs generated dynamicly, so they don't have class properties for them. And I don't know how to control their content. If it was web I would have no problems, cause I could just named each element
name="element_1"
name="element_2"
etc.
And then I will iterate POST, but how to do the same in Windows.Forms.

Thank you in advance
 
Yes, there is a property named Controls what return a ControlCollection. So use properties Count and Item of Controls to iterate.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top