You could try to build the forms separately with a picturebox as the
container and use the API to switch back and forth from screen to screen...
e.g. Build a wrapper class for the handlers... based it on the API
"setparent" and pass the window handles... This one below is 6, but should
port easily to 7.
Public Function RetToParent()
On Error GoTo ErrHandler
Dim lRet As Long
'could be no child form loaded
If mchildPicMainhWnd = 0 Then
Exit Sub
End If
'return the child pic window and remove the references
lRet = SetParent(mchildPicMainhWnd, morigParenthWnd)
If lRet <> 0 Then
'*** use the error handling class here ***
End If
morigParenthWnd = 0
mchildPicMainhWnd = 0
Exit Sub
ErrHandler:
'blah blah blah
End Sub
"Phil" <anonymous (AT) discussions (DOT) microsoft.com> wrote
Quote:
How can I cause a secondary window of an application to become active and
have focus. I reviewed all the MSDN documentation but still can't seem to
|
get it to work. Essentially I have an application and based on various menu
selections I want to display different windows with their own controls for
processing or data input.
Quote:
Can anyone provide an example?
Thanks,
Phil |