October 14th, 2012, 04:30 AM
A better way to write / read dozens of textboxes?
Hi there, how are you?
I'm using VC++ 2008 / Windows Forms Application (CLI)
My question is quite simple:
Let's suppose I have 60 textboxes that I would like to send a message. So, my first obvious and extensive option would be:
textBox1->Text = "My message";
textBox2->Text = "My message";
textBox3->Text = "My message";
textBox60->Text = "My message";
That's obviously not a professional manner to code a program!
How could I do the same by using some sort of loop? I know how to do such thing sending data to an array for example, but to print and read textboxes, numerics updowns, trackbars, etc, I have no idea.
I'd really appreciate your input on this matter.
Thank you in advance!
Tags for this Thread
Click Here to Expand Forum to Full Width