Results 1 to 3 of 3

Thread: Almost Always on top Window

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    Germany
    Posts
    17

    Post

    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


  2. #2

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    Germany
    Posts
    17

    Post

    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 <<


  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width