Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2003, 08:59 AM
Registered User
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create controls at runtime ?

Hi,

I have these tables in my databse (T1, T2 respectively).

----------------------------------------------
ContainerID | ContainerName | ParentControlID |
----------------------------------------------
10 | Panel | 20 |
----------------------------------------------
20 | Form | 0 |
----------------------------------------------
30 | Tab Control | 10 |
-----------------------------------------------


-------------------------------------
ContainerID | ControlID | ControlName |
-------------------------------------
10 | 100 | Button |
--------------------------------------
10 | 200 | TextBox |
--------------------------------------
20 | 100 | Button |
--------------------------------------

if i select a form, then respective containers must be added to that form. And respective controls must be added to the respective containers during run-time. (From Database table). Please note that the "Control Name", "Container Name" are of string type in database table.

Can you please suggest be the way to perform the task with sample code ?

Advance Thanx for your time & patience.

Cheers,
Kishore


 
Old November 3rd, 2003, 09:22 PM
Registered User
 
Join Date: Nov 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to uponline_aom
Default

 Oh
   interesding idea. Good!
but I can say "I am sorry !".






Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Controls At Runtime with MFC. burtlo Visual C++ 2005 2 October 13th, 2007 06:36 AM
Controls at runtime ITGeek ASP.NET 1.0 and 1.1 Basics 4 July 11th, 2007 05:23 AM
Add Runtime Controls dpkbahuguna Beginning VB 6 2 December 7th, 2006 08:55 AM
Load User Controls at Runtime Duncan VB.NET 3 November 4th, 2005 07:05 PM
Create Controls at Runtime everthalia Classic ASP Databases 2 July 30th, 2004 10:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.