473,387 Members | 1,573 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,387 software developers and data experts.

How to change color of a label dynamicaly C# >net 1.1

390 Expert 256MB
Hi,

I ahev one label control.
I want to set the color of that depending on the user input.
what is the class to specify the color.
Is there anyting like Color(0,0,255) in c# .net 1.1
Oct 9 '07 #1
1 2570
nateraaaa
663 Expert 512MB
//this will change the background color
label1.BackColor = Color.Red;

//this will change the color of the font
label1.ForeColor = Color.Black;

Nathan
Oct 9 '07 #2

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

Similar topics

2
by: Raghu | last post by:
Hi, In my ASP.NET web application project we need to design crystal reports with Crystal Reports version 8.5 enterpraise edition(Please Note:It is not the Crystal Reports that comes with...
0
by: Jim Douglas | last post by:
Anyone using the 12.5 .NET provider from Sybase? We are using the 12.5 OleDB and have issues and Sybase is recommending that we move up to the .NET provider. If you are using the .NET provider from...
2
by: Gill Bates | last post by:
I'm trying to login to a banking site (https://www.providentconnection.com) using vb.net. I've tried many variations of WebClient and HttpWebRequest; none of which I've got to work. My latest...
1
by: Alex Maghen | last post by:
Do you guys have a map that shows me... well... all of Microsoft's published SDKs and how (if) they map to available .NET namespaces/SDKs? This is all incredibly comfusing. I want to avoid using...
1
by: jens | last post by:
Hello NG, This question regards a migration of a vb6 application to .NET Since 2 years we develop and extend an administration/reporting application based on VB6, Crystal Reports 10 and MS...
4
by: Bruce | last post by:
I am developing an ASP.NET web service application. It works fine on my WinXP Prof development machine. But when I send it to a Windows Server 2003 system I get the following error (attached...
8
by: Old VB6 Guy | last post by:
First of all, sorry if crossposting bothers you -- I don't normally do it, but both of these groups seem relavant to my questions. Alright, the time has finally come to make an investment in time...
3
by: Monty | last post by:
OK, I had an issue with this and found lots of advice that did not apply, so I'm posting what I found hoping it might help someone else. Here's the sitch: you have a COM app that calls to a .Net...
6
by: =?Utf-8?B?ZmFpcnl2b2ljZQ==?= | last post by:
abviously you need to intall the .net framework to have a .net application run, but is there anyway i can change .net application into native code application so that it can run directly without...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.