CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2003
    Location
    Cardiff and Oxford
    Posts
    44

    How to you make a form re-load

    I have forms with buttons on them, the buttons are loaded in from a database in the _load part.

    If i edit the database and return to the form, I want to re-load it compleatly, Mine remembers its last state.

  2. #2
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167
    How are you re-loading the form?

    -Cool Bizs

  3. #3
    Join Date
    Nov 2002
    Location
    Tatooine
    Posts
    155
    Did you try setting it equal to a new form?
    That which does not kill us, only makes us stronger.

    MCSD .NET

  4. #4
    Join Date
    Mar 2003
    Location
    Cardiff and Oxford
    Posts
    44

    Thanks for help

    Thanks for yout help I have solved the issue now. i I re-declare the form evytime I want to envoke it.

    EG:
    DIM spiritsForm AS NEW spirits form.

    It seems to solve my problem as a new form has fresh settings.

    Will this impinge on speed and memory though, will old forms still reside in memory??


  5. #5
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    Just be sure to call the forms close() method for each form and you should be OK.

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