Something just pops up in my mind.
When I was creating a form with a lot of controls in the module, I was wondering whether if I were to do it statically or dynamically.
The thing is that I want to do a/several forms dependings on the number of items I have in a list. I know roughly the limit of the items in the list hence, I know how many forms I can create for my application. But, question is that, if I do it dynamically, I need to write the code to generate a lot of controls dynamically, and unfortunately there was no duplicate function for the form, which allow me to copy the template of my form as many as I want. :BangHead:
Then, I was thinking of predefined several forms for usage (3 forms mostly). One question pops up in my mind, this will consume more memory. But, comparing to the code and dynamically generating the controls with the code, I was wondering whether it is worth it or not.
When I was creating a form with a lot of controls in the module, I was wondering whether if I were to do it statically or dynamically.
The thing is that I want to do a/several forms dependings on the number of items I have in a list. I know roughly the limit of the items in the list hence, I know how many forms I can create for my application. But, question is that, if I do it dynamically, I need to write the code to generate a lot of controls dynamically, and unfortunately there was no duplicate function for the form, which allow me to copy the template of my form as many as I want. :BangHead:
Then, I was thinking of predefined several forms for usage (3 forms mostly). One question pops up in my mind, this will consume more memory. But, comparing to the code and dynamically generating the controls with the code, I was wondering whether it is worth it or not.