Adding controls at run-time !!
Hi,
I have the table in my databse (T1). This is simple windows based application.
---------------------------------------------------------
ContainerID | ContainerName | ParentControlID |
---------------------------------------------------------
10 | Panel | 20 |
---------------------------------------------- ----------
20 | Form | 0 |
--------------------------------------------------------
30 | Tab Control | 10 |
---------------------------------------------------------
40 | Panel | 10 |
---------------------------------------------- ----------
Now my task is if the ContainerName is "form" then i need not do any thing. If it is of Panel, then its parentControlID is 20, which is form. Then i have to add the Panel to form. And for TabControl, the ParentControlID is 10, which is a panel, so i want to add this to Panel ete...
Can you please suggest me the way to perform the task with sample code.
Advance ThanX for your time & patience.
Cheers,
Kishore
|