Minimize a dll form

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I have an application in Access 2000 that runs a custom
dll written in VB6. One method in the dll shows a form.
I wish to make the form minimize if the user minimizes
the Access Application Window.

The VB6 Show method seems to offer a way to do this. I
use something like frmTestForm.Show vbModal, OwnerForm in
the dll, but cannot find how to make OwnerForm refer to
the Access Application Window.

Anybody know how to do it?
 
Peter said:
*I have an application in Access 2000 that runs a custom
dll written in VB6. One method in the dll shows a form.
I wish to make the form minimize if the user minimizes
the Access Application Window.

The VB6 Show method seems to offer a way to do this. I
use something like frmTestForm.Show vbModal, OwnerForm in
the dll, but cannot find how to make OwnerForm refer to
the Access Application Window.

Anybody know how to do it? *

You can use the WinAPI function SetParent to specify the parent as
non-VB6 Form. To get the MS Office app's hwnd, make that applicatio
topmost, use the Access.Application function hWndAccessApp().

Hope that helps


-
jabbot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top