I've stored form names in a data base. now i want to load forms by using those names
<p>I've stored form names in a data base. Now I want to load forms by using those names.
Here is my table structure:</p>

<pre><code>frmID, Item_Name, formName
</code></pre>

<p>Here is my code:</p>

<pre><code>    private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
    {
        //TreeNode node = treeView1.SelectedNode;
        string item = Convert.ToString(treeView1.SelectedNode);

        int index = item.IndexOf(" ");
        if (index &gt; 0)
            item = item.Substring(index + 1); 
        //MessageBox.Show(item);
        var selectedFRM = from Menu in dbdata.Menus
                          where Menu.Item_Name == item
                          select Menu;
        foreach (var pick in selectedFRM.Take(1))
        {
            string sel = pick.Form_Name;
            Assembly asm = typeof(Form).Assembly;
            Type type = asm.GetType(sel);

            string df = Convert.ToString(type);
            MessageBox.Show(df);
            AssemblyName assemName = asm.GetName();
            MessageBox.Show(assemName.Name);
            try
            {
            Form frmChk = (Form)Activator.CreateInstance(type);                
                frmChk.Show();
            }
            catch (Exception)
            {
                MessageBox.Show("Error in loading form");
            }
           // MessageBox.Show(sel);
        }
</code></pre>

<p>upto <code>Assembly asm = typeof(Form).Assembly;</code> code is working properly. How can I load a form by using the "formName" which is in the database</p>
