Child window getting stuck behind the parent window.-VBForums
Results 1 to 4 of 4

Thread: Child window getting stuck behind the parent window.

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2013
    Posts
    2

    Child window getting stuck behind the parent window.

    HI,
    When an Active X dll window is opened from the .Net window and the activex window is made a modal dialog, it works fine to start with. But when the parent .net window is maximized before invoking the modal activex dialog and when i move to some other application and then come back to click the parent window in the task bar; it shows the parent window full screen. The modal dialog of activex control is hidden behind. I am using the standard interop dll to interact with the activex control. Any idea why this issue is happening? I need to know the reason.

    It works fine when i set the CallerHWndProperty in the activex control to the parent window explicitly. I used the window.handle property to set it before invoking the modal dialog. But i need to know why the issue happens in the first place.

    thanks in advance,
    Rajini

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Candon City, Ilocos Sur, Phils.
    Posts
    10,827

    Re: Child window getting stuck behind the parent window.

    May we see some code on how you are doing it?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Registered User
    Join Date
    Apr 2013
    Posts
    2

    Re: Child window getting stuck behind the parent window.

    Please Find the attached project.
    Attached Files Attached Files
    Last edited by Joacim Andersson; Apr 16th, 2013 at 04:36 AM. Reason: Removed EXE file from attachment

  4. #4
    Super Moderator Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,521

    Re: Child window getting stuck behind the parent window.

    @Rajini, when you attach your project files in the future, please make sure you remove all binary files (EXE, DLL, and so on) from your BIN directory before attaching it. I've removed the binaries in your post above.
    Joacim Andersson
    If anyone's answer has helped you, please show your appreciation by rating that answer.
    I'd rather run ScriptBrix...
    Joacim's view on stuff.

    MVP

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.