huby Posted March 23, 2004 Posted March 23, 2004 not sure if i should post this in windows forms, ASP.NET, or Database, so i'll just drop it here :D i read data in a database, and get it all out via a SqlDataReader. I would like to dynamically create Controls and fill them with my Data. My problem is that i don't know how to access my freshly-created control (to fill it with text, for example. see sample code) while (dr.Read()) { Panel1.Controls.Add(new TextBox()); // then what ? } any hints ? thank you ! Huby. Quote there are 10 kinds of people on earth: those who understand binary, and those who don't.
*Gurus* divil Posted March 23, 2004 *Gurus* Posted March 23, 2004 Create it first, then add it. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.