Displaying a UserControl inside a WinForm
<p>I am working on a class library that inherits from Form class and then displays this form inside of a Gui app.  Now I need to change the class library into a <code>UserControl</code>.  </p>

<p><strong>How do I go about displaying it inside of a form in another project?</strong>  Thanks in advance for your suggestions.</p>

<p>IFaceForm is the usercontrol inside of the InterfaceLibrary.</p>

<pre><code>using InterfaceLibrary;

namespace MxlInterface
{  
    public partial class IFaceConn : Form
    { 
        iFaceForm Interface = new iFaceForm();

        //size of the parent form is 881,514
        //use these variables to change the position of the "Interface Form"
        int xlocation = 0;
        int ylocation = 0;

        public IFaceConn()
        {
            InitializeComponent();

            //Interface.StartPosition = FormStartPosition.Manual;
            Interface.Location = new Point(xlocation, ylocation);
            //Interface.MdiParent = this;

            Interface.Show();
        }
    }
}
</code></pre>
