Positioning a Web Control - Runtime

G

Glenn T. Kitchen

Hello Group,

How do you position a web control you create at runtime?

I thought:
=====================================
Dim Label1 as Label = New Label
Me.Controls.Add(Label1)
Me.Controls.Item(Label1).Location(x,y)
=====================================
I thought that would be spiffy. Could anyone help with my venture?
Thank you,

Glenn
 
G

Glenn T. Kitchen

Hi Cor,
I liked your sample, it worked well (had a couple typos). The only thing
bothering me is that one still has to position a control (Panel) at design
time. I'm thinking there has to be a way to create a new control then
dictate the position of which it is to reside on the form. And hopefully in
Absolute positioning instead of Layout positioning.

Do you, or anyone, know if this is possible.

Thank you again Cor.

Glenn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top