Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert argb to rgb Pin
Wjousts13-Jun-06 4:46
Wjousts13-Jun-06 4:46 
GeneralRe: convert argb to rgb Pin
edel_ong13-Jun-06 4:52
edel_ong13-Jun-06 4:52 
GeneralRe: convert argb to rgb Pin
Josh Smith13-Jun-06 5:01
Josh Smith13-Jun-06 5:01 
AnswerRe: convert argb to rgb Pin
Guffa13-Jun-06 6:18
Guffa13-Jun-06 6:18 
QuestionGraphic Proccess Pin
pirogramci13-Jun-06 4:37
pirogramci13-Jun-06 4:37 
AnswerRe: Graphic Proccess Pin
Mr. Rogers13-Jun-06 6:27
Mr. Rogers13-Jun-06 6:27 
Questionmode and compression format of tiff file Pin
pbmcoder13-Jun-06 4:29
pbmcoder13-Jun-06 4:29 
QuestionVS 2005 ListViews not holding background color Pin
acezrwild81713-Jun-06 3:56
acezrwild81713-Jun-06 3:56 
I have created a listview in my C# form and when i add an item through my code I change the background color of my cells/rows. However, when i scroll over them at runtime the color defaults back to white and then they stay white. I have different tab pages in my form. If I switch to a different tab page and then come back the colors will be back where they were until they are selected or scrolled over again. Is this simply a glitch in VS? I have no idea how to fix it. When I enter items into the listview I am using the following code.



ListViewItem li = new ListViewItem(le.TimeStamp.ToString());

//Allows us to use different fonts, backgroud colors, etc. for individual items within a row on the

//list view and for entire rows themselves

li.UseItemStyleForSubItems = false;


string mt = "";

//depending on the type of message that is being logged to the case tab a color indicator is chosen

//to be displayed in the "Indicator" column

switch(le.MessageType)

{

//display a green indicator bar and a message for "Informational"

case "Informational":

{

mt = "Informational";

li.SubItems.Add(mt);

li.SubItems.Add("");

li.SubItems.Add(le.Message);

li.SubItems[2].BackColor = Color.Green;

CaseLogListView.Items.Add(li);

break;

}

QuestionInsert text into webform from desktop app Pin
psyonara13-Jun-06 3:26
psyonara13-Jun-06 3:26 
Questionmove next record from the current record in dataview Pin
Mohammed Elkholy13-Jun-06 3:15
Mohammed Elkholy13-Jun-06 3:15 
QuestionEvent issue Pin
atulonweb@hotmail.com13-Jun-06 2:35
atulonweb@hotmail.com13-Jun-06 2:35 
AnswerRe: Event issue Pin
MCSD-Gandalf13-Jun-06 3:38
MCSD-Gandalf13-Jun-06 3:38 
AnswerRe: Event issue Pin
Josh Smith13-Jun-06 4:41
Josh Smith13-Jun-06 4:41 
GeneralRe: Event issue Pin
atulonweb@hotmail.com13-Jun-06 17:58
atulonweb@hotmail.com13-Jun-06 17:58 
Questionstatic class and Serialization Pin
Sendilkumar.M13-Jun-06 2:35
Sendilkumar.M13-Jun-06 2:35 
AnswerRe: static class and Serialization Pin
Guffa13-Jun-06 2:56
Guffa13-Jun-06 2:56 
GeneralRe: static class and Serialization Pin
Josh Smith13-Jun-06 4:48
Josh Smith13-Jun-06 4:48 
Questionreading xml files with c#.Net Pin
fady_sayegh13-Jun-06 2:34
fady_sayegh13-Jun-06 2:34 
AnswerRe: reading xml files with c#.Net Pin
Dustin Metzgar13-Jun-06 3:14
Dustin Metzgar13-Jun-06 3:14 
AnswerRe: reading xml files with c#.Net Pin
Tamimi - Code13-Jun-06 3:23
Tamimi - Code13-Jun-06 3:23 
GeneralRe: reading xml files with c#.Net Pin
fady_sayegh13-Jun-06 3:30
fady_sayegh13-Jun-06 3:30 
GeneralRe: reading xml files with c#.Net Pin
Dustin Metzgar13-Jun-06 3:36
Dustin Metzgar13-Jun-06 3:36 
GeneralRe: reading xml files with c#.Net Pin
fady_sayegh13-Jun-06 4:43
fady_sayegh13-Jun-06 4:43 
QuestionNDoc-C# Documentation Pin
MozhdehQeraati13-Jun-06 2:29
MozhdehQeraati13-Jun-06 2:29 
AnswerRe: NDoc-C# Documentation Pin
Dustin Metzgar13-Jun-06 3:13
Dustin Metzgar13-Jun-06 3:13 

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.