Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

771 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

15 Experts available now in Live!

Get 1:1 Help Now