Click here to Skip to main content
14,455,121 members
   

C#

 
QuestionHow to get RGB color values of web cam image Pin
DC22522-Jul-08 2:14
MemberDC22522-Jul-08 2:14 
AnswerRe: How to get RGB color values of web cam image Pin
Luc Pattyn22-Jul-08 3:23
sitebuilderLuc Pattyn22-Jul-08 3:23 
RantRe: How to get RGB color values of web cam image Pin
Laleen Dharmasena29-Oct-12 18:59
MemberLaleen Dharmasena29-Oct-12 18:59 
QuestionQuestion Pass certain variables to method. Pin
Member 426786722-Jul-08 1:53
MemberMember 426786722-Jul-08 1:53 
AnswerRe: Question Pass certain variables to method. Pin
Ashfield22-Jul-08 2:17
MemberAshfield22-Jul-08 2:17 
AnswerRe: Question Pass certain variables to method. Pin
J4amieC22-Jul-08 2:27
MemberJ4amieC22-Jul-08 2:27 
GeneralRe: Question Pass certain variables to method. Pin
Member 426786722-Jul-08 3:53
MemberMember 426786722-Jul-08 3:53 
Questionwindows treeview - image Pin
arkiboys22-Jul-08 1:07
Memberarkiboys22-Jul-08 1:07 
I have populated a treeview (tvwResults) with some data such as:

item1
subitemA1
subitemB1
item2
subitemA2
subitemB2
subitemB3
subitemB4
item3
subitemA3
...
...
...

I have added an imagelist control with three images with indexes 0, 1, 2
for error, fail, warning

I am tying to assign the correct image to each item and subitem accordingly...
For example, if there is an error in one of the subitems, then that subitem will have the image of error which is index 0 and so the image for that item i.e. the item will be warning i.e. index 2
And if all the subitems of an item have fail in the text then the image for the item will be error too.

I have started working on the following code.

Question:
can you please see if what i am trying to do in this code is correct based on the above request?
Thanks

foreach (TreeNode n in tvwResults.Nodes[0].Nodes)
{
foreach (TreeNodeCollection nc in tvwResults.Nodes[0].Nodes)
{
if (nc.ToString().ToLower().Contains("error"))
{
nc.ImageIndex = 0 // error...
????
}
}
}
AnswerRe: windows treeview - image Pin
stancrm22-Jul-08 2:52
Memberstancrm22-Jul-08 2:52 
Questionscrols in grid column Pin
Nilish22-Jul-08 1:06
MemberNilish22-Jul-08 1:06 
AnswerRe: scrols in grid column Pin
stancrm22-Jul-08 2:53
Memberstancrm22-Jul-08 2:53 
Questionweb site needs certificate Pin
George_George22-Jul-08 0:28
MemberGeorge_George22-Jul-08 0:28 
AnswerRe: web site needs certificate Pin
leppie22-Jul-08 6:29
Memberleppie22-Jul-08 6:29 
GeneralRe: web site needs certificate Pin
George_George27-Jul-08 2:31
MemberGeorge_George27-Jul-08 2:31 
QuestionCreate Pop Server Pin
kathiresanmoorthy21-Jul-08 23:33
Memberkathiresanmoorthy21-Jul-08 23:33 
GeneralRe: Create Pop Server Pin
Guffa22-Jul-08 0:41
MemberGuffa22-Jul-08 0:41 
QuestionCreating different excel file and exporting datatbles in that Pin
Member 387988121-Jul-08 22:24
MemberMember 387988121-Jul-08 22:24 
AnswerRe: Creating different excel file and exporting datatbles in that Pin
Ashfield22-Jul-08 2:20
MemberAshfield22-Jul-08 2:20 
QuestionFocus in Dialog in Setup Project Pin
Sifar - 021-Jul-08 22:09
MemberSifar - 021-Jul-08 22:09 
QuestionUsing Unsafe code Pin
sumit703421-Jul-08 21:53
Membersumit703421-Jul-08 21:53 
AnswerRe: Using Unsafe code Pin
stancrm21-Jul-08 22:14
Memberstancrm21-Jul-08 22:14 
GeneralRe: Using Unsafe code Pin
sumit703421-Jul-08 22:36
Membersumit703421-Jul-08 22:36 
QuestionBitmap to ByteArray Conversion...? Pin
DeepOceans21-Jul-08 20:59
MemberDeepOceans21-Jul-08 20:59 
AnswerRe: Bitmap to ByteArray Conversion...? Pin
stancrm21-Jul-08 22:16
Memberstancrm21-Jul-08 22:16 
AnswerRe: Bitmap to ByteArray Conversion...? Pin
Guffa22-Jul-08 0:50
MemberGuffa22-Jul-08 0:50 

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.