Here's my situation:

I've created a Control Library which contains one usercontrol which contains a button and three textboxes. I've built the solution and have saved the project.

In my Windows application I have a reference to my control library and have included the "using..." statement for my control library.

Now, at runtime I want the ability to drop that usercontrol from my control library and access a method in that class. Make sense????

I can't seem to access the methods of the UserControl1 class in my control library unless I'm referencing the exact usercontrol on my form.
VB Code:
  1. private void button8_Click(object sender, System.EventArgs e)
  2.         {
  3.             String tn;
  4.             Control ctl = new Control();
  5.             int x = 1;
  6.             ctl = panel1.GetNextControl(this, true);
  7.             if (ctl is hsControlLibrary.UserControl1)
  8.             {
  9.                 do
  10.                 {
  11.                     ctl.//Cannot access method in UserControl1 class
  12.                     this.BindingContext[dataSet1, "Table1"].Position +=1;
  13.                 }
  14.                 while (panel1.Controls.Count >= x);                                                                        
  15.             }
  16.         }

Thanks in advance!!!!