[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

C# code to change the text of a label (i.e. set label3 = "This stuff");

Posted on 2007-08-01
1
Medium Priority
?
208 Views
Last Modified: 2010-05-18
I have placed a text label on a form (i.e. label3) and I can of course change it using the porperties WIndow but on the fly I was to set the label text from my code. In Java it was like label3.setText("Text") or something - how do I do this in C# - even gOoGle let me down.

Thanks!
0
Comment
Question by:Karl66
1 Comment
 
LVL 33

Accepted Solution

by:
hongjun earned 375 total points
ID: 19609794
try this

label2.Text = "Text";
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

830 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