benjamin.weizmann
Registered User.
- Local time
- Today, 10:07
- Joined
- Aug 30, 2016
- Messages
- 78
hi 
I understood I can't add controls to form during run time - unless in design view.
So, I created a lot of hidden controls and during run time I make them to visible
I feel its so naïve and not optimal - like I need reboot all those controls when the form loads and return them to hidden state, when I make them visible I transform their format (size, color, position.) during run time etc...all this take memory and time.
in addition, I don't know how much control I will need during runtime .. so do I need create massive hidden controls quantity??
I know it's very general question, but please can someone give me advice how to make it more optimal?
there is a way to create control during runtime that I don't know? is my way accepted?
Ben

I understood I can't add controls to form during run time - unless in design view.
So, I created a lot of hidden controls and during run time I make them to visible
I feel its so naïve and not optimal - like I need reboot all those controls when the form loads and return them to hidden state, when I make them visible I transform their format (size, color, position.) during run time etc...all this take memory and time.
in addition, I don't know how much control I will need during runtime .. so do I need create massive hidden controls quantity??
I know it's very general question, but please can someone give me advice how to make it more optimal?
there is a way to create control during runtime that I don't know? is my way accepted?
Ben