PC Review


Reply
Thread Tools Rate Thread

C# ListView background color question

 
 
Jason Huang
Guest
Posts: n/a
 
      29th Dec 2006
Hi,

In my C# Windows form MyForm, I have a ListView LVW1 and it's size is pretty
big, says it can accommodate approximately 25 rows.
The LVW1 is in a GroupBox.
Now that I only have 5 rows of ListViewItem in the LVW1, and we leave empty
space on the LVW1.
In some situation the color of the empty space of the LVW1 is grey, and
sometimes it is white.
How do I do to set the color of whole LVW1 to be white always?
Thanks for help.


Jason


 
Reply With Quote
 
 
 
 
Jason Huang
Guest
Posts: n/a
 
      29th Dec 2006
Just found out that it is because the LVW1's . Enabled=false;
Is it possible not to grey it out when it is disabled?
Thanks for help.



"Jason Huang" <(E-Mail Removed)> ¼¶¼g©ó¶l¥ó·s»D:(E-Mail Removed)...
> Hi,
>
> In my C# Windows form MyForm, I have a ListView LVW1 and it's size is
> pretty big, says it can accommodate approximately 25 rows.
> The LVW1 is in a GroupBox.
> Now that I only have 5 rows of ListViewItem in the LVW1, and we leave
> empty space on the LVW1.
> In some situation the color of the empty space of the LVW1 is grey, and
> sometimes it is white.
> How do I do to set the color of whole LVW1 to be white always?
> Thanks for help.
>
>
> Jason
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change ListView row background color DavidC Microsoft ASP .NET 1 25th Apr 2010 07:20 PM
listview item loses background color after I change selection ari Microsoft VB .NET 5 24th Nov 2008 04:56 PM
Is there a way to get the listview header background color? jrhoads23@hotmail.com Microsoft Dot NET Framework Forms 2 14th Apr 2005 05:47 PM
newbie help in Listview Column BackGround Color VP Microsoft C# .NET 0 9th Mar 2005 12:04 PM
Re: Change background color of particular row in a ListView Peter Foot [MVP] Microsoft Dot NET Compact Framework 0 7th Sep 2003 03:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:41 AM.