Click here to Skip to main content
14,697,262 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any possibility of changing the parent of a modal dialog?

I created a dialog from an application by calling DoModal() from a posted user message, But unexpectedly the parent of that dialog is not the main window of that application. Parent window is another application's window.

Actually two applications are Active document servers embeded in a container.

Thanks
Radhakrishnan G.
Posted
Updated 1-Jun-10 19:32pm
v4

What do you mean by change the parent. You can use the results of your dialog to change values in the parent window but I suspect that is not your question. Please clarify.
   
I suppose you could use this:

SetParent[^]

It should do exactly what you want.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900