Home All Groups Group Topic Archive Search About

Positioning a Web Control - Runtime

Author
12 Apr 2005 11:24 AM
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

Author
12 Apr 2005 11:34 AM
Cor Ligthert
Glenn,

In this message is a sample from me.

http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vb/msg/a3e86e6a07ea54b0

I hope this helps,

Cor
Author
12 Apr 2005 12:43 PM
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
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
news:OryKuO1PFHA.3688@TK2MSFTNGP10.phx.gbl...
> Glenn,
>
> In this message is a sample from me.
>
>
http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vb/msg/a3e86e6a07ea54b0
Show quoteHide quote
>
> I hope this helps,
>
> Cor
>
>