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"
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Rana