|
-
Sep 16th, 2011, 02:39 PM
#1
Thread Starter
Lively Member
[RESOLVED] Class Help
Hi,
I have a class called 'Box' which inherits 'TextBox' and has one string property.
I've added multiples of the class to the Form, and I want to then display each of the strings in each 'Box' in textbox1.
Obviously, each new class is called, Box1, Box2, Box3 etc, so I know I can access the string with something like:
textbox1.text = Box1.text + Box2.text + Box3.text
But, if I start adding more 'Box'es to the form, how can i automatically 'address' the nex 'Box'es?
I thought about a For, Each approach but couldn't get it going, any ideas?
Thanks,
Aaron.
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
|