Results 1 to 5 of 5

Thread: Working with forms at runtime

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Carolina, Puerto Rico, USA
    Posts
    227
    Is there a way to save the contents of a form, example,
    if the user create a control at runtime, then i want to save those controls to load them later, is there a way to do it?


    Thanks in advance!
    NievesJ

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    open any form.frm in notepad, it will give you an idea!

  3. #3
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    If I understood your question you want to keep track of how many controls you have loaded during runtime and reload them the next time you run the app . You can save some strings that contain the name , loacation , and other information in a file or the registry . add read it during the next time you run the app .
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    This code shows you how to loop trough all the controls in a form.
    Code:
    'loop trough all controls
    For Each Control In Controls
        'print some info about the control to the debug window
        Debug.Print Control.Name 'the name
    Next
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Carolina, Puerto Rico, USA
    Posts
    227

    Talking Thanks!!

    Thanks a lot, you guys rock!!!
    NievesJ

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