Hi VB-Fans,
does anybody know how to subordinate a form to a specific App. E.g. I want to create a form which is only visible when Word is active but in Word it should be always on top.
When Excel is active then only Excel should be visible.
Thanks
Printable View
Hi VB-Fans,
does anybody know how to subordinate a form to a specific App. E.g. I want to create a form which is only visible when Word is active but in Word it should be always on top.
When Excel is active then only Excel should be visible.
Thanks
Unforunately nowbody replied to my question. Perhaps it isn't clear what I meant.
I "only" need a API call which sets my VB-Form as a MDI-Form of another application. That's it.
In my opinion it's a hardcore API question. Maybe a hard nut for Aaron Young or Crazy D?!?! :-)
Regards,
------------------
>> Frank <<
You have to know the hWnd of the Window you would like to have as the parent (for example the hWnd of Word). Then call SetWindowPos and pass the hWnd as the hwndInsertAfter argument.
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com