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
2009-03-04 15:52:51
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
2009-06-26 11:05:11
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
2010-03-25 10:23:53