473,504 Members | 13,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Positioning a Web Control - Runtime

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
2 1609
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
32028
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
11
2622
by: NS | last post by:
I am relativly new to css positioning and have a question regarding the display of a DHTML pop-up Here is the basic HTML I am using: <html> <head> <script language="JavaScript"> <!--
1
1260
by: Bob Rosen | last post by:
I would like to place some button controls on a web page underneath a DataGrid control. Since the height of the DataGrid depends on the number of rows displayed, which is determined by user...
2
2771
by: hzgt9b | last post by:
Using Visual studio 2003 and VB.NET, I want to programatically position a control (windows media player) on my form. For example, I want to position the control in 1 of 9 locations: topLeft,...
1
1966
by: Harry | last post by:
Hi I am adding a textbox control at runtime that allows a user to enter a date. I also want to add a calendar icon beside the textbox so that the user can click on the calendar icon and have it...
1
1890
by: Amilcar | last post by:
Hi there, I'm trying to change the position on a webform for a control (a Table control), at run time. The code I wrote for doimg this is: .... Table.Style.Add("LEFT", "120");...
2
1776
by: Johnson Smith | last post by:
Question is related to ASP.Net and controlling the position of these controls. I am using html table to placce my web controls. I am displaying same datagrid and calendar controls at clicks of...
1
1204
by: asad | last post by:
Hello, I have some problem in Layout of my page when i put ASP.NET control on it, actually in this control i have created the links of my website and, i want to include this control in all of my...
2
2472
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.