Chris_871 Level: Master

 Registered: 30-11-2002 Posts: 106
|
Dynamically Creating Controlls in VB.net
Hai Friends
We can creating a controls run time in VB.Net
for example , to load a textbox control dynamically in runtime
dim tx as new textbox()
me.controls.add(tx)
tx.name = "textbox1"
tx.text = "Hai I am dynamically created Text box"
tx.location = new point(100,100)
'If u want to add this control within a group box, u just bring it into front. To bring it to front add the following code
tx.bringtofront()
|