Click to See Complete Forum and Search --> : Almost Always on top Window
Frankiz
Jan 2nd, 2000, 08:33 PM
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
Frankiz
Jan 3rd, 2000, 08:07 PM
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 <<
Joacim Andersson
Jan 3rd, 2000, 10:18 PM
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
joacim@programmer.net
joacim@yellowblazer.com
www.YellowBlazer.com (http://www.YellowBlazer.com)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.