473,566 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Read location of web control on a web form.

I know I can set the Top and Left properties as follows....

imgPageTab1.Sty le.Add("Top", "10px")

imgPageTab1.Sty le.Add("Left", "10px")

Is there a way to read the location of a control on a page in the code
behind without first setting the location?

Thanks in advance.
Nov 12 '05 #1
0 806

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
888
by: Jim Mitchell | last post by:
I know I can set the Top and Left properties as follows.... imgPageTab1.Style.Add("Top", "10px") imgPageTab1.Style.Add("Left", "10px") Is there a way to read the location of a control on a page in the code behind without first setting the location? Thanks in advance.
4
1567
by: JMUApache | last post by:
Hi, A have a problem with Inhreit Control. I try to Change its Size in Construct Function, And it works. Code Here: -------------------------------------------------- public class UserControl:TextBox {
5
18297
by: John Bradley | last post by:
Toooo tired to look this one up. I have data that I need to acces in a small program. The data is accessable from an ASP webpage that I created myself. If I need to see data from record #25, I just open http://mydomain.com/datapage.asp?recnum=25. I would like to read this data directly into a variable. I'm sure this is quite easy (as easy...
4
5067
by: Strahimir Antoljak | last post by:
I want to track the cursor location relative to a control on the form. I am aware of System.Windows.Forms.Cursor.Position which provides absolute cursor position relative to the screen. With right subtractions of the form location and the control location it is possible to get the relative cursor location to the screen.... with one exception -...
2
3130
by: Vish | last post by:
Hi, I am trying to move controls around in a form based on user selection on a combo-box. So i hard coded the location and distances of where and how much to move controls by in my program. Everything works fine on my machine. But when i run my program on another machine which has a diferent DPI setting on the monitor(mine was 120 and the...
5
27593
by: Jon Slaughter | last post by:
Is there a way to get a controls location in screen coordinates? (not relative to the container it is in)? Thanks, Jon
1
1395
by: hrubesh | last post by:
Hi, I am having a problem finding the right location of a control if it is found on a form that is on an MDI parent. On mouse click, i want to bring out a "pop up window" that will display extra information and options., but the form itself is being displayed in odd locations i wonder why i have iterated up until the MDI. anyone can help please?...
1
3220
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a control that is inside a GroupBox, and that GroupBox is inside another group box. I would like to find the location of the control relative to the form itself. When I examine the Location of the control, it is relative to the containing GroupBox, and the Location of that GroupBox is relative to its containing GroupBox. ...
3
1536
by: chandan | last post by:
Hi, Is any way to palce a control(button/label) at a location on webPage in runtime?? In page_load envet I am adding a button on the page in the contol collection of a panel but not able to specify the location of the button since button controls did not have location property in web. I am trying to place a control at mouse click...
2
5441
by: ducttape | last post by:
Hello I'm busy working with an MDI parent and child forms. I've found that there is a discrepancy between the locations returned by DesktopLocation, Control.MousePosition and MouseEventArgs e.Location, but I can't work out why or what exactly the discrepancy is. My forms are all custom without title bars and thus I've had to create my own...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
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...
0
6260
agi2029
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...
0
5213
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...
0
3643
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1201
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.