[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, 05:24 PM
Last Post: 08-12-2002, 10:40 PM
By Rob Teixeira in forum .NET
Last Post: 06-06-2002, 05:23 AM
By Todd B in forum Security
Last Post: 12-30-2000, 06:37 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center