473,466 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

label position

6 New Member
how to put a label at a specified position at run time in c#.net
Mar 5 '08 #1
3 1590
sanatpalia
10 New Member
You can just set the left and top properties of the label like

label1.Left = 100;
label1.Top = 50;

This should do it.

Thanks
Sanat Palia
Mar 5 '08 #2
navneet gupta
6 New Member
Hello,
A label neither has left property nor top property.Please tell me another things to do this.
bye
thank you


You can just set the left and top properties of the label like

label1.Left = 100;
label1.Top = 50;

This should do it.

Thanks
Sanat Palia
Mar 5 '08 #3
jjvainav
25 New Member
The label control does have the properties Left and Top. They are hidden from the designer. You can also do it this way:

Expand|Select|Wrap|Line Numbers
  1. label1.Location = new Point(100, 50);
  2.  
Hello,
A label neither has left property nor top property.Please tell me another things to do this.
bye
thank you
Mar 5 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jacky11 | last post by:
By default when you enable the data label in a 3-D Bar Chart, the data label starts in the middle of the bar chart. There is no Label Position option for a 3-D Chart, like nay other chart type....
4
by: Stuart Norris | last post by:
Dear Readers, I am attempting to draw box around some text using unicode on multiline label. The label is forty characters wide and 12 lines deep. I have been trying to draw a box around text...
3
by: Efkas | last post by:
Hi, I have to position my Text property in my Label with an image in background, but I don't want to use the TextAlign attributes because where I want to put the text is not the enum value like...
7
by: Mike Casey | last post by:
Hello all, I have ASP.NET label controls tied to a datasource (so text will vary in length depending on the record). In IE everything looks great--text is wrapped if needed. In Netscape and...
1
by: gce | last post by:
I like to declare my label in the code : dim lblTotaal as new label And then I like to place it on an exact position. When I type the following in the HTML part it works, but I like to have my code...
2
by: Joe Delphi | last post by:
Hi, I want to position label text so that it always appears centered when the user re-sizes the browser window. I tried adding the HTML property text-align="CENTER" to the code, but ASP.NET...
8
by: david | last post by:
I have developed a web form by using visual Studio. My question is: (1) what is the problem? (2) what is right way to do it? In the form, there are labels with id: lblWear, lblColor, and...
9
by: Haines Brown | last post by:
I would like to have a label followed by a line to the right margin, such as this: Label: _____________________________________________________________ There are ways to define lines having...
2
by: Wilfried Mestdagh | last post by:
Hi, I want to add a Label on a panel programatically. No problem. But I can't seems to manage that the label is centered horizontal and vertical in the panel. I experimented with TextAlign and...
4
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I have two labels on a form. The text for these two labels is assigned at runtime. lblLeft lblRight If the text for lblLeft is wider than the default, the text runs into lblRight. How do...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...
1
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...
0
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,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.