|
-
Jun 27th, 2009, 03:28 PM
#1
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
-
Jun 27th, 2009, 03:39 PM
#2
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.
-
Jun 27th, 2009, 03:56 PM
#3
Re: Reloading/refreshing a form without closing it
I beg your pardon, I did not understand it, could you elaborate?
-
Jun 27th, 2009, 07:31 PM
#4
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.
-
Jun 27th, 2009, 09:39 PM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|