Click here to Skip to main content
15,891,828 members
Home / Discussions / C#
   

C#

 
QuestionHow to get RGB color values of web cam image Pin
DC22522-Jul-08 1:14
DC22522-Jul-08 1:14 
AnswerRe: How to get RGB color values of web cam image Pin
Luc Pattyn22-Jul-08 2:23
sitebuilderLuc Pattyn22-Jul-08 2:23 
RantRe: How to get RGB color values of web cam image Pin
Laleen Dharmasena29-Oct-12 17:59
Laleen Dharmasena29-Oct-12 17:59 
QuestionQuestion Pass certain variables to method. Pin
Member 426786722-Jul-08 0:53
Member 426786722-Jul-08 0:53 
AnswerRe: Question Pass certain variables to method. Pin
Ashfield22-Jul-08 1:17
Ashfield22-Jul-08 1:17 
AnswerRe: Question Pass certain variables to method. Pin
J4amieC22-Jul-08 1:27
J4amieC22-Jul-08 1:27 
GeneralRe: Question Pass certain variables to method. Pin
Member 426786722-Jul-08 2:53
Member 426786722-Jul-08 2:53 
Questionwindows treeview - image Pin
arkiboys22-Jul-08 0:07
arkiboys22-Jul-08 0: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 1:52
stancrm22-Jul-08 1:52 
Questionscrols in grid column Pin
Nilish22-Jul-08 0:06
Nilish22-Jul-08 0:06 
AnswerRe: scrols in grid column Pin
stancrm22-Jul-08 1:53
stancrm22-Jul-08 1:53 
Questionweb site needs certificate Pin
George_George21-Jul-08 23:28
George_George21-Jul-08 23:28 
AnswerRe: web site needs certificate Pin
leppie22-Jul-08 5:29
leppie22-Jul-08 5:29 
GeneralRe: web site needs certificate Pin
George_George27-Jul-08 1:31
George_George27-Jul-08 1:31 
QuestionCreate Pop Server Pin
kathiresanmoorthy21-Jul-08 22:33
kathiresanmoorthy21-Jul-08 22:33 
GeneralRe: Create Pop Server Pin
Guffa21-Jul-08 23:41
Guffa21-Jul-08 23:41 
QuestionCreating different excel file and exporting datatbles in that Pin
Member 387988121-Jul-08 21:24
Member 387988121-Jul-08 21:24 
AnswerRe: Creating different excel file and exporting datatbles in that Pin
Ashfield22-Jul-08 1:20
Ashfield22-Jul-08 1:20 
QuestionFocus in Dialog in Setup Project Pin
Sifar - 021-Jul-08 21:09
Sifar - 021-Jul-08 21:09 
QuestionUsing Unsafe code Pin
sumit703421-Jul-08 20:53
sumit703421-Jul-08 20:53 
AnswerRe: Using Unsafe code Pin
stancrm21-Jul-08 21:14
stancrm21-Jul-08 21:14 
GeneralRe: Using Unsafe code Pin
sumit703421-Jul-08 21:36
sumit703421-Jul-08 21:36 
QuestionBitmap to ByteArray Conversion...? Pin
DeepOceans21-Jul-08 19:59
DeepOceans21-Jul-08 19:59 
AnswerRe: Bitmap to ByteArray Conversion...? Pin
stancrm21-Jul-08 21:16
stancrm21-Jul-08 21:16 
AnswerRe: Bitmap to ByteArray Conversion...? Pin
Guffa21-Jul-08 23:50
Guffa21-Jul-08 23: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.