-
October 14th, 2012, 04:30 AM
#1
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!
All best,
Fernando
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|