Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: OnComm Events in MSCOMM OCX control Pin
Dave Kreskowiak14-Jul-07 4:00
mveDave Kreskowiak14-Jul-07 4:00 
QuestionWin32 API? Pin
andyvm13-Jul-07 15:33
andyvm13-Jul-07 15:33 
AnswerRe: Win32 API? Pin
Ky Nam14-Jul-07 4:42
Ky Nam14-Jul-07 4:42 
Questionmore datails about flash files properties Pin
monamour13-Jul-07 15:30
monamour13-Jul-07 15:30 
Questionlistview item backcolor - XP problem [modified] Pin
Glen Harvy13-Jul-07 15:07
Glen Harvy13-Jul-07 15:07 
AnswerRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 2:50
martin_hughes14-Jul-07 2:50 
GeneralRe: listview item backcolor - XP problem Pin
Glen Harvy14-Jul-07 3:56
Glen Harvy14-Jul-07 3:56 
GeneralRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 4:35
martin_hughes14-Jul-07 4:35 
I've just tried all the possible modes, and it they all work like they should - with no need to invalidate, refresh or whatever.

Here's an idea, just so you can see if it works outside of your current project. Create a new WinForms project and put a button and a listview on the form.

In the list view manually add three columns - the names don't matter very much Col1, Col2, Col3 should be fine. Also, switch the grid to details mode.

Place this code in button1's click event:

<br />
private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            for (int g = 0; g < 10; g++)<br />
            {<br />
                string[] namesArray = new string[3] { "Martin", "Was", "Here" };<br />
<br />
                for (int i = 0; i < namesArray.Length; i++)<br />
                {<br />
                    ListViewItem lvi = new ListViewItem(namesArray[0]);<br />
                    lvi.SubItems.Add(namesArray[1]);<br />
                    lvi.SubItems.Add(namesArray[2]);<br />
<br />
                    lvi.BackColor = Color.FromArgb(Convert.ToInt32("58996"));<br />
                    listView1.Items.Add(lvi);<br />
                }<br />
            }               <br />
        }<br />


When you run the program (I've done it from both Debug and Release folders), hopefully you'll get something like this?

http://img261.imageshack.us/img261/4448/listviewin4.jpg[^]
GeneralRe: listview item backcolor - XP problem Pin
Glen Harvy14-Jul-07 5:17
Glen Harvy14-Jul-07 5:17 
GeneralRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 9:51
martin_hughes14-Jul-07 9:51 
QuestionProblems with GUI class design Pin
User 665813-Jul-07 14:06
User 665813-Jul-07 14:06 
AnswerRe: Problems with GUI class design Pin
Luc Pattyn13-Jul-07 14:38
sitebuilderLuc Pattyn13-Jul-07 14:38 
GeneralRe: Problems with GUI class design Pin
User 665814-Jul-07 0:21
User 665814-Jul-07 0:21 
GeneralRe: Problems with GUI class design Pin
Luc Pattyn14-Jul-07 1:36
sitebuilderLuc Pattyn14-Jul-07 1:36 
GeneralRe: Problems with GUI class design Pin
User 665814-Jul-07 3:20
User 665814-Jul-07 3:20 
QuestionVideo Pin
Leslie Sanford13-Jul-07 11:15
Leslie Sanford13-Jul-07 11:15 
Questioncompression Pin
mkl_0713-Jul-07 10:24
mkl_0713-Jul-07 10:24 
AnswerRe: compression Pin
Paul Conrad13-Jul-07 10:31
professionalPaul Conrad13-Jul-07 10:31 
Question[How] Screen reading for automation tasks? Pin
sbscb13-Jul-07 9:59
sbscb13-Jul-07 9:59 
AnswerRe: [How] Screen reading for automation tasks? Pin
Shy Agam13-Jul-07 11:08
Shy Agam13-Jul-07 11:08 
QuestionConcating strings... Pin
Shy Agam13-Jul-07 9:13
Shy Agam13-Jul-07 9:13 
AnswerRe: Concating strings... Pin
PIEBALDconsult13-Jul-07 9:32
mvePIEBALDconsult13-Jul-07 9:32 
AnswerRe: Concating strings... Pin
Guffa13-Jul-07 10:25
Guffa13-Jul-07 10:25 
AnswerRe: Concating strings... Pin
Luc Pattyn13-Jul-07 10:35
sitebuilderLuc Pattyn13-Jul-07 10:35 
QuestionA query regarding deployment!!! Pin
haseebbutt00713-Jul-07 8:02
haseebbutt00713-Jul-07 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.