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.Ite m(Label1).Locat ion(x,y)
=============== =============== =======
I thought that would be spiffy. Could anyone help with my venture?
Thank you,
Glenn 2 1617
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******** ******@TK2MSFTN GP10.phx.gbl... Glenn,
In this message is a sample from me.
http://groups-beta.google.com/group/...e86e6a07ea54b0 I hope this helps,
Cor
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. However, there are images that I
used absolute positioning in order to place them in the appropriate
location on my page. When I do a browser resize, these images do not
move (obviously). However, the rest of my content is auto centered as...
|
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">
<!--
|
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 selections, I need to set the
position of the button controls at runtime. With a Windows form I could do
it with:
Button.Top = Datagrid.Top + Datagrid.Height + <offset>
Unfortunately, the Top property is not provided for web server controls.
How,...
|
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, topCenter, topRIght, leftCenter,
center, rightCenter, bottomLeft, bottomCenter, bottomRight.
Is there an easy way to ask the container to place the control in one of
these places? I assume I can do coordinate math - getting bounds from the
form but I...
|
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 populate the textbox if they choose.
(We all have seen this in sites such as expedia or something like that).
I have a placeholder that will hold the textbox and I want to add the
calendar to the SAME placeholder. I am able to add it to the same...
| |
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");
Table.Style.Add("TOP", "50");
....
|
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 different buttons.
Since I am using same control for various clicks, it is hard for me to place
the controls at runtime for my required position.
Any suggestions of doing this will be a great help.
Johnson Smith
|
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 pages, but when i include it, page
layout or positioning distrubed I'm applying html table but it can't work, so
pls tell me what i do to solve this problem.
Thanks.
Following is the URL where u will find actual picture of my problem
|
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 page controls were all over the
place.
"Ironically, absolute positioning is relative. Yes, you read that right. An
absolutely positioned element is positioned relative to another element,
called the containing block. Here comes the definition...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |