Results 1 to 5 of 5

Thread: Reloading/refreshing a form without closing it

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Arrow Reloading/refreshing a form without closing it

    On the Form_Closing I intend to just hide the form but somehow I need to reload/refresh the form as when it was just loaded the first time, could I just call its Load event to achieve it?

    TIA
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    Frenzied Member Campion's Avatar
    Join Date
    Jul 2007
    Location
    UT
    Posts
    1,098

    Re: Reloading/refreshing a form without closing it

    It's possible that you could add a NEW sub on the form where you pass an object into that will contain the values that were initially passed into the previous form.
    From my burrow, 2 feet under.

  3. #3

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Reloading/refreshing a form without closing it

    I beg your pardon, I did not understand it, could you elaborate?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4
    Frenzied Member Campion's Avatar
    Join Date
    Jul 2007
    Location
    UT
    Posts
    1,098

    Re: Reloading/refreshing a form without closing it

    Basically, you instantiate a new form, but pass an object containing the the initial stuff from the previous form into the NEW sub.
    From my burrow, 2 feet under.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Reloading/refreshing a form without closing it

    Just handle the VisibleChanged event and load your data there. That will load the data each time the the form is shown. Obviously you'll need an If statement so that it doesn't get loaded when the form is hdden too.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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