Hi All,
I have an application that queries a table to return the name of user controls that I have in my application. I want to use this to create the controls dynamically at runtime.
So I have my results stored in ds.Tables("myTable") and it returns a resulting VarChar ctlMyControl.
Normally you would create and add it to the form like this:
How do I create this control in my code using the results returned from the query?
Thanks, Dave.
I have an application that queries a table to return the name of user controls that I have in my application. I want to use this to create the controls dynamically at runtime.
So I have my results stored in ds.Tables("myTable") and it returns a resulting VarChar ctlMyControl.
Normally you would create and add it to the form like this:
Visual Basic:
Private ctl As New ctlMyControl
Me.pnl.Controls.Add(ctl)
Thanks, Dave.