tags:

views:

71

answers:

3

I have a windows form with two child controls. I need to highlight both the controls at the same time using c#. Please suggest me how to solve this problem.

A: 

Can you define what you mean by "highlight"? Are you referring to both controls having focus? Also, what kind of controls are the child controls?

Bill
A: 

Try this to highlights nodes in the TreeView control

// condition when to highlight
if (treeNode.Text.StartsWith("Important"))
{
   treeNode.BackColor = Color.Yellow;
}
Peter Gfader
A: 

The MS TreeView control does not support multi-select, so if that is what you have to use, you would have to use a method like what Peter suggest. The Infragistics UltraWinTree control has multi-select capabilities.

Malcolm Post