473,569 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setting multiple label.text properties

1 New Member
Hi

I am using Visual Basic 2005.

I have a stream of data which I want to set over 20 label.text properties.

Instead of setting the data individually ie label1.text = ....label2.text =.....
is there a away to paramaterise label.text for numerous labels?

ie

for i=1 to 20
label(i).text =
next

I know the above does not work but is there anything similar?

regards

Rmiah
Oct 17 '06 #1
1 2453
Killer42
8,435 Recognized Expert Expert
Hi
I am using Visual Basic 2005.
I have a stream of data which I want to set over 20 label.text properties.
Instead of setting the data individually ie label1.text = ....label2.text =.....
is there a away to paramaterise label.text for numerous labels?
ie
for i=1 to 20
label(i).text =
next
I know the above does not work but is there anything similar?
regards
Rmiah
Ok, for starters I'm talking VB6 so your situation may be completely different in VB 2005. But if you create label as a control array, your code will work as written. And I've always heard that a control array is more efficient than a bunch of individual controls.
Oct 24 '06 #2

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

Similar topics

1
2053
by: rforman1 | last post by:
I have found many threads with this question asked and ostensibly answered, but none with an example of how exactly to do it. Help! I know that in order to set up the values of command line arguments from within the IDE, I go to Project Properties, Configuration Properties, and then the text box labeled "Command Line Arguments" under the...
7
2913
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 Opera, the text extends horizontally and does not wrap. Any ideas would be most appreciated! Thanks,
2
1352
by: John | last post by:
If I have aspx code like: < asp:label Text='<%# GetData() %>'>< /asp:label> Is there some way in my GetData() method that I can get a handle to this Label control, and set other properties apart from Text, too?? That way a single db addess could set text, color, visibility etc. Passing 'this' just returns the asp:Page control :(
1
1583
by: Gramps | last post by:
Hi, I have a simple ascx(Banner) that consists of an image a label and a public property, 'ThisTitle'. From a page I want to set the label via assignment to the property. The only way I can find to set this property is in the HTML of my page: <uc1:Banner id="Banner1" runat="server"
1
1978
by: Frank Yamrick | last post by:
I am trying to program an application that requires a large number of screnes that are very similar in the respect that all the bottons and labels interact with each other with the same relationship. If possible, it seems it would be easier to set up one standard page where the text is blank for each radiobutton, button, or label. The text...
0
1074
by: Paul | last post by:
Hello, and Good Morning, I need to Cross-page post some values to the target page. Since I am using Master pages and User Controls, I am finding it hard to get the thing working, so I am trying to use Properties to do so. So, in a test page, I have a ViewForm with labels in it, and a few asp.net controls that are outside of the...
6
4229
by: surfrat_ | last post by:
Hi, I have a project that loads a splash screen while initialization takes place. On the splash form is a label that I want to update with messages on what is happening with the initialization. Before the main form is loaded I show the splash screen and then try to update the splash label to indicate the status. I cannot figure out the...
2
1707
by: robert112 | last post by:
This is quite a hard one guys. ***Some necessary back ground Info*** I have an asp.net 1.1 application that uses a WYSIWYG to return some html created by the user in the admin section of the application. The html that the user creates is a survey or form made up of textbox's, radio buttons and drop downs. The form gets saved to a sql...
25
5379
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if my question needs to be here or in coldfusion. If i have my question is in the wrong section i am sorry in advance an will move it to the correct section. Basically i have a multiple select box. An it works except for this one part i want to add to it.The first box i have is called project members which...
0
7703
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
7618
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...
0
8132
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
7678
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
7982
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
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...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
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
944
bsmnconsultancy
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...

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.