Solved

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

Posted on 2004-09-21
1
5,040 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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 …

770 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