how can one create dynamic textboxes from vb.net code it self ?

Recommended Answers

the controls are classes you can declare one the same as any class, Dim MyTextBox As New TextBox

Jump to Post

All 2 Replies

the controls are classes you can declare one the same as any class, Dim MyTextBox As New TextBox

In order to be useful it is necessary for dynamically created controls to be added to the form (or a container in the form). Typically you also want to add event handlers. There are examples of how to create controls at runtime, attach event handlers, etc. in the code snippets section. one example is here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.