|
-
Sep 4th, 2003, 07:06 AM
#1
Thread Starter
Member
Switching between forms using .Show
I am using .Show and .Hide to switch between multiple forms. This technique is not effective when you return to a form (using .Show) that contains data that has changed since you last .Showed the form, because the form does not display the latest changes. I need a better method of switching between forms that contain dynamic data, or a techneque for automatially refreshing a form since the load routine is skipped when .Showing a form.
-
Sep 4th, 2003, 07:21 AM
#2
Obviously you have to write your own code for RefreshControls, but you will already have this code in the Load event of the form.
Does this help?
Tris.
VB Code:
Private Sub Form1_VisibleChanged(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles MyBase.VisibleChanged
If Visible Then
RefreshControls()
End If
End Sub
This world is not my home. I'm just passing through.
-
Sep 4th, 2003, 07:37 AM
#3
Thread Starter
Member
That did the job quite nicely...just what I was looking for.
Thanks, Tris!
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
|