Results 1 to 5 of 5

Thread: Opening a child form from an office application [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    47

    Resolved Opening a child form from an office application [RESOLVED]

    Hello. I have a routine for opening child forms from Visio. This is how I'm doing it:
    frm is my form, and oVisio is my visio application
    VB Code:
    1. SetParent(frm.hWnd,oVisio.Window.WindowHandle32)
    2. frm.Show

    the problem is, if the visio window isn't maximized, the form doesn't appear in the center, but appears where the center would be IF it was maximized. my StartUpPosition is set to 1, which is center owner. What do i need to do to make it center to the current size of the application?
    Thank you!
    Last edited by Vhati; Jun 29th, 2005 at 05:09 PM. Reason: Resolution

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