Fast access for your controls (C# code).

I am a new user here so you don't know me :)
I share a freeware program for o/c=OcBible anyway the forms of OcBible include many textboxes.
For example Variation Analysis has 700! :eek:
Thus it is boring to write a code
Code:
.
.
.
do_this(textBox1);
do_this(textBox2);
.
.
.
do_this(textBox700);

Inquisitor said:
no animate sigs allowed here ;)
OK I removed the shark!
It was a smile from other forum.
 
Last edited:
happytechie said:
The most efficient way of accessing a subset of the controls on a form
I think (that's why I added a panel --> the 11th post at Aoaforums) is the same solution or am I wrong? :confused:
Paul the most important thing is the source code size.
The forms are being smaller and smaller.
 
eriedor said:
If you want fast code do not use for each use simple for loop.
Thanks for tip.

eriedor said:
Also if you have say 700 textboxes they no doubt are created dynamically at runtime
WOW a trick!
I will play with this dude thanks again.
But I am not a professional programmer like you I just started learning Windows programming two years ago.

happytechie said:
Have you thought about my other sugestions?
No mate I have not but I will do this in the future versions.
Thanks all for your suggestions :)
 
Last edited:
Thanks again all people for the new tips. :)
NathanE I am not a professional programmer like you.
I mentioned this above. :D
 
Last edited:
Back
Top Bottom