473,396 Members | 2,002 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,396 software developers and data experts.

How to display values in labels

I need a way to get the .text property of a label however i dont want
to display that property in the label box. I thought i could do
somthing with the visible property however it will not show the label.
I need the label to show however i want the actual text value blank in
that lable.
Dec 6 '07 #1
6 2406
cmdolcet69 wrote:
I need a way to get the .text property of a label however i dont want
to display that property in the label box. I thought i could do
somthing with the visible property however it will not show the label.
I need the label to show however i want the actual text value blank in
that lable.
Use '.Tag'

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Dec 6 '07 #2
On Dec 6, 2:39 pm, ShaneO <spc...@optusnet.com.auwrote:
cmdolcet69 wrote:
I need a way to get the .text property of a label however i dont want
to display that property in the label box. I thought i could do
somthing with the visible property however it will not show the label.
I need the label to show however i want the actual text value blank in
that lable.

Use '.Tag'

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
How would the .tag work with this ?

CType(newGraphics.readingLabelArrayList(intloop), Label).text
I thought i could have just said
CType(newGraphics.readingLabelArrayList(intloop), Label).visible=false
however that takes away the whole testbox.
Dec 6 '07 #3
On Dec 6, 2:57 pm, cmdolcet69 <colin_dolce...@hotmail.comwrote:
On Dec 6, 2:39 pm, ShaneO <spc...@optusnet.com.auwrote:
cmdolcet69 wrote:
I need a way to get the .text property of a label however i dont want
to display that property in the label box. I thought i could do
somthing with the visible property however it will not show the label.
I need the label to show however i want the actual text value blank in
that lable.
Use '.Tag'
ShaneO
There are 10 kinds of people - Those who understand Binary and those who
don't.

How would the .tag work with this ?

CType(newGraphics.readingLabelArrayList(intloop), Label).text

I thought i could have just said
CType(newGraphics.readingLabelArrayList(intloop), Label).visible=false
however that takes away the whole testbox.
What do you want to see? If a Label is visible, all you will see is
the contents of the Text property. It sounds like you want to
associate a value with the label but do not display it even when the
label is visible. The best way to do that is to store this value in
the Tag property instead of the Text property, which is why the Tag
property was even suggested.
Dec 6 '07 #4
On Dec 6, 3:44 pm, za...@construction-imaging.com wrote:
On Dec 6, 2:57 pm, cmdolcet69 <colin_dolce...@hotmail.comwrote:


On Dec 6, 2:39 pm, ShaneO <spc...@optusnet.com.auwrote:
cmdolcet69 wrote:
I need a way to get the .text property of a label however i dont want
to display that property in the label box. I thought i could do
somthing with the visible property however it will not show the label.
I need the label to show however i want the actual text value blank in
that lable.
Use '.Tag'
ShaneO
There are 10 kinds of people - Those who understand Binary and those who
don't.
How would the .tag work with this ?
CType(newGraphics.readingLabelArrayList(intloop), Label).text
I thought i could have just said
CType(newGraphics.readingLabelArrayList(intloop), Label).visible=false
however that takes away the whole testbox.

What do you want to see? If a Label is visible, all you will see is
the contents of the Text property. It sounds like you want to
associate a value with the label but do not display it even when the
label is visible. The best way to do that is to store this value in
the Tag property instead of the Text property, which is why the Tag
property was even suggested.- Hide quoted text -

- Show quoted text -
Well all i did was change the text color property to the value color
property and it seems to work, harsh i know but i don;t know too much
about the tag property. maybe ill use it next time or look at some
examples. Thanks anyways for all the help
Dec 6 '07 #5
On Dec 6, 3:53 pm, cmdolcet69 <colin_dolce...@hotmail.comwrote:
On Dec 6, 3:44 pm, za...@construction-imaging.com wrote:


On Dec 6, 2:57 pm, cmdolcet69 <colin_dolce...@hotmail.comwrote:
On Dec 6, 2:39 pm, ShaneO <spc...@optusnet.com.auwrote:
cmdolcet69 wrote:
I need a way to get the .text property of a label however i dont want
to display that property in the label box. I thought i could do
somthing with the visible property however it will not show the label.
I need the label to show however i want the actual text value blank in
that lable.
Use '.Tag'
ShaneO
There are 10 kinds of people - Those who understand Binary and those who
don't.
How would the .tag work with this ?
CType(newGraphics.readingLabelArrayList(intloop), Label).text
I thought i could have just said
CType(newGraphics.readingLabelArrayList(intloop), Label).visible=false
however that takes away the whole testbox.
What do you want to see? If a Label is visible, all you will see is
the contents of the Text property. It sounds like you want to
associate a value with the label but do not display it even when the
label is visible. The best way to do that is to store this value in
the Tag property instead of the Text property, which is why the Tag
property was even suggested.- Hide quoted text -
- Show quoted text -

Well all i did was change the text color property to the value color
property and it seems to work, harsh i know but i don;t know too much
about the tag property. maybe ill use it next time or look at some
examples. Thanks anyways for all the help
I have used the Tag property extensively. All it is is a property that
you can use to associate some data with the control. In VB6 days, it
was a String, but in .NET it is an object, so it can contain virtually
anything you want to put in it.
Dec 6 '07 #6
cmdolcet69 wrote:
>
Well all i did was change the text color property to the value color
property and it seems to work, harsh i know but i don;t know too much
about the tag property. maybe ill use it next time or look at some
examples. Thanks anyways for all the help
The way it read to me was that you wanted to place some type of
"Invisible" text into the Label or at least associate (and store) some
type of data in the Label Control without it showing in the actual Text
of the Label Control(???)

If this is true, then my suggestion is not only valid, but arguably the
BEST way to do it, afterall, that's what the TAG Property is there for!

If this is not true, then please explain yourself more thoroughly so
people might be able to provide the help you require.
ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Dec 7 '07 #7

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

Similar topics

2
by: Shannan Casteel via AccessMonster.com | last post by:
I have a table with information about different people...(i.e. Name, Address, Phone, Fax, etc.). The table has been linked to Access. I have created a combo box that uses this information. ...
2
by: JJ L. | last post by:
Hello. I have a project that consists of nine different objects, each serving their own purpose. In the past I have just created a form for each one, and then whenever you call, say,...
2
by: tony collier | last post by:
hi i have various labels on my page with ID's label_1, label_2 , label_3 etc. How can i write a loop that sequentially changes their text values to values i have in an array eg;. for...
5
by: Martin Moser | last post by:
Does somebody knows, if theres a way to display any file (tiff, doc, pdf, .....) "inline" on an asp.net site? What I want to do is, to display a file, which is stored in the DB, and some...
1
by: Gary Frank | last post by:
I added a couple of labels and a button to a Datalist control called "dlSignIn" by adding them to the Item template. The labels are bound to a dataset column. Program code gets executed in the...
3
by: Fendi Baba | last post by:
I have a table with a field called ProjectPhaseID, and another which shows the ProjectPhaseID and ProjectPhaseName. On the data enty form, I want to display the ProjectPhaseName as radio button...
3
by: Gary | last post by:
I have a bunch of labels, and want to put in some container, which should be: 1. The number of labels for each column is fixed, say 16/row. And the number of currently displaying rows is fixed,...
1
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to...
9
by: Bob Malcoprs | last post by:
Hi, I want to get all the selected values of a listbox in several labels.. With this code here below, when i click on e.g. "option 2", i get '2' in label2. That's ok. But if i then click on...
2
WyvsEyeView
by: WyvsEyeView | last post by:
I have a form on which users select various search parameters and then click a View button to display a report of the results. I would like to display the search parameters used on the report itself...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...
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...

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.