Link to home
Start Free TrialLog in
Avatar of bdb12
bdb12

asked on

Displaying controls made in VB code

USing VB.NET & ASPX conntrols

If I create a control in the code

eg Dim txt1 as New textbox

how can I then display that control on the actual form?

I think it has something to do with aspx for that page, but Im not sure how to actual place the control Object so its on the form for the user to see....

thx
Avatar of AUmidh
AUmidh

Dim txt1 as New textbox
txt1.Location=New Point(x,y)
form1.Controls.Add(txt1)
txt1.Show()
Avatar of bdb12

ASKER

thx for your reply

.location & . show don't come up in intellisense....using VS 2005....
ASKER CERTIFIED SOLUTION
Avatar of AUmidh
AUmidh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bdb12

ASKER

Awesome ...thx man

Didnt need the InitializeComponent() tho