[HELP] Create and Remove Controls at Run Time
I saw the article (http://www.freevbcode.com/ShowCode.a...815&NoBox=True) that tells how to create and remove controls at run
time and it works perfectly but I will like to know how can I use the
objects created. For example: I create a Textbox with name "Text1",
but how can I use the data that I will insert in the textbox created
at run time?
thanks so much for helping.
Look at the MSDN page
At the bottom, it explains how to add a Command button, basically you have to declare a global variable of type, in your case, TextBox
"There are two ways to write error-free programs. Only the third one works."
By referencing it in code through the controls collection. You can also write code for its events just as you would if you put a control on your form at design time...
That's it. Works perfectly!
Originally Posted by mstraf
Thanks to everyone.
By dhaya in forum Database
Last Post: 08-25-2003, 06:24 PM
Last Post: 08-12-2002, 11:40 PM
By Rob Teixeira in forum .NET
Last Post: 06-06-2002, 06:23 AM
By Todd B in forum Security
Last Post: 12-30-2000, 07:37 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL