Click to See Complete Forum and Search --> : saveing controls at runtime


ramesh c
September 12th, 2001, 05:14 AM
hello all,

i have stuck with problem. i wanted to create controls like textbox, labels ,checkbox and others at runtme and save those in the form so that next time when i view the form the controls should be visible.
i am able to create controls at runtime, but i dont know how the save the controls or the window with the controls.
please help me out, if any one know it

Cimperiali
September 12th, 2001, 06:31 AM
You cannot "save" them into compiled exe as far as I know, but you can re-create all controls saving informations to do that. You can use savesettings or write informations to a file and then reload it at form load event...

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.

The Rater