Link to home
Start Free TrialLog in
Avatar of justin11
justin11

asked on

Adding a dynamic control

Hello,

I am trying to add a dynamic control to my existing webapp. I ma not sure how to set the properties of a text box.
Here is the code I am trying to use,but it gives me compilation error. Please help:

Dim TextBox1 As New TextBox
            TextBox1.ID = "EmployeeName_Text"
            TextBox1.ReadOnly = True

TextBox1.Style("Z-INDEX: 107; LEFT: 170px; POSITION: absolute; TOP: 96px")
            TextBox1.BackColor = "Ivory"
            TextBox1.Font = "Verdana"
            TextBox1.FontSize = "XX-Small"
            TextBox1.Width = "200px"
ASKER CERTIFIED SOLUTION
Avatar of Jason Scolaro
Jason Scolaro
Flag of United States of America image

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
then add this control to me.controls.add(TextBox1)
Rana