I have a frame (with controls in it) on a form.
When I switch processes (alt Tab) and come back again, the form shows but not the frame.
How can I switch back to the process, keeping the frame visible?
Printable View
I have a frame (with controls in it) on a form.
When I switch processes (alt Tab) and come back again, the form shows but not the frame.
How can I switch back to the process, keeping the frame visible?
In the Form_Activate event you can refresh the form.
VB Code:
Private Sub Form_Activate() Me.Refresh End Sub
BUT does this event fire when you Alt Tab back to the process?
(The frame is on its own Form, which seems to close when you Alt Tab away from the process. I Dont what the form to put an icon in the task bar [which I think is the only way to avoid this problem]?)
Ah, I see as it states:
So it wont fire if your alt tabbing out of your application.Quote:
Moving the focus to or from an object in another application doesn't trigger either event.
so how does one keep the form active/visible after an alt tab ???
This seems a fundimental requirement in most apps...
The whole point of windows is multitasking so you cane switch between apps
without altering either app's window!
I couldnt duplicate the painting issue. What else does your form do?
If you make a simple program which has two forms
and in form1 it does
form2.Show
If form2 has 'show in taskbar' = false
then if you Alt Tab away & back to the program, form2 is not shown
i.e You can't leave and return to the program exactly as it was....