none
Hello, I wonder how to float "Userform" window and mail window at the same time. RRS feed

  • Question

  • I want to make an userform working with newly received mail.

    If I activate userform by clicking userform, mail windows disappear.

    and If I activate mail window by clicking mail window, userform disappear.

    How can I solve this problem?

    thank you for you reply in advance.

    Thursday, February 22, 2018 12:21 AM

All replies

  • Your form must a child of the Inspector. The HWND of any inspector can be retrieved by casting it to IOleWindow and calling  IOleWindow.GetWindow.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Thursday, February 22, 2018 12:37 AM
  • I found the google web but I couldn't have clue for the code.

    I barely understood what is inspector and what is IOIeWindow.

    Could you give me some example code for activating?

    and, I meant both two window(mail window and userform window) should be top of the window.

    is it possible? it seems that your description is... just retrieving window(if just retrieve window one window will go to back)

    Saturday, February 24, 2018 1:16 AM
  • What programming language are you using?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Sunday, February 25, 2018 5:02 AM