Solved

C# Change the tabControl tabPage text color RED if listview contains information??

Posted on 2004-09-21
1
5,073 Views
Last Modified: 2007-12-19
I have a tabControl with three tabpages. The tabPage3 needs the text color changed to Red if its embeded listview (item or subitems) contain(s) any data........

if(listView4????????????????  = true)
{
this.tabPage2.ForeColor = System.Drawing.Color.Red;
}
else
{
this.tabPage2.ForeColor = System.Drawing.Color.Black;
}
}
0
Comment
Question by:kvnsdr
1 Comment
 
LVL 5

Accepted Solution

by:
tzxie2000 earned 125 total points
ID: 12117601
It may be
if(listView4.Items.Count>0)
{
this.tabPage2.ForeColor = System.Drawing.Color.Red;
}
else
{
this.tabPage2.ForeColor = System.Drawing.Color.Black;
}
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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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