Solved

Change Label Text Property

Posted on 2006-11-15
13
1,758 Views
Last Modified: 2008-01-09
How can I change a label on the form without going through the properties box?  I used to be able to single click the label twice and start typing in VB6.  It is such a pain to go through the properties box for every single control.  Must be an easier way in vb.net 2003.
0
Comment
Question by:flfmmqp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
13 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 17946542
From your code, you can use

Label1.Text="Label Description"

Does that answer your question?
0
 
LVL 19

Expert Comment

by:Desp
ID: 17946578
I think you are talking about changing label in the design view and not from the code
You can change your label text simply by selecting a label and typing new label text like "ABC" but properties box will display
0
 

Author Comment

by:flfmmqp
ID: 17946648
No I don't want to change from the code.  I want to be able to change it when looking at the form design and click on it to change.  I can do this from the code that is simple.  The default setting for vb.net seems to have taken this function away that VB6 used to have.  I want to be looking at the form and single click twice and change the text on the controls on the form.  Does this make sense?  I should not have to go through the properties box to do this!
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 67

Accepted Solution

by:
sirbounty earned 250 total points
ID: 17946675
Sorry, I don't think you have any other option than what's already been mentioned.
You'll find several features of vb6 are not available in .net - mostly due to the fact that it's not an 'upgrade' but more of a replacement...(I miss the ease of using control arrays in vb6, for example, but I'm gradually learning to do it the .net way...)
0
 

Author Comment

by:flfmmqp
ID: 17946692
Desp:

That only works if the last thing you click on was the text in the properties box.  Close but no cigar.  If I had last been working in the name field it would start typing in the name field.  
0
 

Author Comment

by:flfmmqp
ID: 17946703
That is what is great about this site.  I know someone has an answer to this question.  Please let someone have the answer to this question.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 17946736
I hope to be proven wrong... ;)
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 17947122
Hi flfmmqp;

To change most of the properties of controls in .Net IDE / Design time it must be done in the properties window. There are some properties such as Size and Location that can be changed from the form view but that is about it.

Sorry sirbounty but could not prove you wrong. ;=)

Have a great day everyone.

Fernando
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 17947473
I'm sure you'll have many more moments to do so in the future Fernado... ;^)
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 17947805
Well that will be true for us all, otherwise we will not be learning. ;=)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question