By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

Positioning a Web Control - Runtime

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Glenn,

In this message is a sample from me.

http://groups-beta.google.com/group/...e86e6a07ea54b0

I hope this helps,

Cor
Nov 21 '05 #2

P: n/a
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" <no************@planet.nl> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl...
Glenn,

In this message is a sample from me.

http://groups-beta.google.com/group/...e86e6a07ea54b0
I hope this helps,

Cor

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.