CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2001
    Posts
    1

    saveing controls at runtime

    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


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: saveing controls at runtime

    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
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured