If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

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 AnderssonIf anyone's answer has helped you, please show your appreciation by rating that answer.
I'd rather run ScriptBrix...Joacim's view on stuff.