Solved

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

Posted on 2004-09-21
1
4,999 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net dynamic formulas in runtime 11 61
Syntax error 9 45
Word Directory is not in the drop down list 4 24
Entity Framework 7 27
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now