How to create two application domains, each of them with its own separate window (as opposed to get embedded in host window)?
<p>I am learning application domain now.</p>

<p>My host program will call 2 appdomains which call an assembly as follows:</p>

<pre><code>class Program
{
    static void Main(string[] args)
    {
        AppDomain ad1 = AppDomain.CreateDomain("appdom1");
        ad1.ExecuteAssembly("c:\\InputOutput.exe");

        AppDomain ad2 = AppDomain.CreateDomain("appdom2");
        ad2.ExecuteAssembly("c:\\InputOutput.exe");

        Console.Write("Press any key to unload");

        Console.ReadLine();

        AppDomain.Unload(ad1);
        AppDomain.Unload(ad2);
    }
}
</code></pre>

<p>How to make each appdom  have its own separate window rather than reside in the  host application?</p>

<p>Thank  you in advance.</p>
