-
[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
http://msdn.microsoft.com/en-us/libr...8VS.60%29.aspx
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."
Unknown
-
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...
Good Luck
-
 Originally Posted by mstraf
That's it. Works perfectly!
Thanks to everyone.
Similar Threads
-
By dhaya in forum Database
Replies: 11
Last Post: 08-25-2003, 05:24 PM
-
Replies: 146
Last Post: 08-12-2002, 10:40 PM
-
By Rob Teixeira in forum .NET
Replies: 129
Last Post: 06-06-2002, 05:23 AM
-
By Todd B in forum Security
Replies: 0
Last Post: 12-30-2000, 06:37 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks