473,399 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Create label at run time

Hi
I would like to create a label at runtime and show it on a web form, but once i create doesn't appear anywher
How can I add the control on the web form so I can see it
thank yo
Fabrizio
Nov 15 '05 #1
4 8229
"=?Utf-8?B?RmFicml6aW8=?=" <an*******@discussions.microsoft.com> wrote in
news:BA**********************************@microsof t.com:
I would like to create a label at runtime and show it on a web form, but
once i create doesn't appear anywhere How can I add the control on the
web form so I can see it ? thank you


Your question is certainly welcome here, but you'll have a better chance of
someone knowing the answer in the .aspnet group.

How are you creating it? That is waht does you code look like?

If you look at the designer generated code for a sample label, does it look
similar and are you passing the same values / property values?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 15 '05 #2
Hi,

You might check this thread (see response from MSFT guy):
http://tinyurl.com/2pgzr

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Fabrizio" <an*******@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Hi,
I would like to create a label at runtime and show it on a web form, but once i create doesn't appear anywhere How can I add the control on the web form so I can see it ?
thank you
Fabrizio

Nov 15 '05 #3
"Fabrizio" <an*******@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Hi,
I would like to create a label at runtime and show it on a web form, but once i create doesn't appear anywhere How can I add the control on the web form so I can see it ?

Hi Fabrizo,

You should be able to instantiate a new Label object and add it to the
form's Controls collection.

Joe
--
http://www.csharp-station.com
Nov 15 '05 #4
"Joe Mayo" <jm***@nospamAtCSharpDashStation.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
"Fabrizio" <an*******@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Hi,
I would like to create a label at runtime and show it on a web form, but

once i create doesn't appear anywhere
How can I add the control on the web form so I can see it ?

Hi Fabrizo,

You should be able to instantiate a new Label object and add it to the
form's Controls collection.

Please ignore my comment - I overlooked the fact that he said "Web Form" and
not "Windows Form".

Joe
--
http://www.csharp-station.com
Nov 15 '05 #5

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

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
3
by: jhs | last post by:
Hello, I developping a .NET windows form application an need some help to create an array of System.Windows.Forms.Label in order to be able to manage all of them using index. I'm trying to do...
3
by: Tracey | last post by:
My application requires to create labels with varied length at runtime. But I don't know how to do that. However, the font of string displayed in label is different, how can I decide the length...
4
by: Cesar Ronchese | last post by:
Hello. I have a WebForm that contains a Panel object. This panel, at design time is empty. When running, I need to create dinamically a Label and a WebControl (built from the same project). I...
6
by: TonyMast | last post by:
VB 2005 - XP Pro - Windows forms I'm trying to write a simple multiplication tables program for my little girl. How can I create 200 labels, 100 textboxes. Here is what I've tried so far...
7
by: Matt | last post by:
Hi all, I'm trying to create a system where it reads a number of records from a database and then creates a row in the GUI that contains a single field from the database and a button that has a...
1
by: Ronald S. Cook | last post by:
How can I create a label array at design time in a .NET Windows forms app? Thanks, Ron
7
by: The Mad Ape | last post by:
Hi I have code to programatically create a label. It works but when I try to call a sub to create a tooltip it does not work. I do not get an error so have no idea what it wrong. Please review...
0
by: TrevRex | last post by:
Hello, I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.