T
Tee
Hi,
In my C# application i have a treeview control and listview control, the
treeview is on the left side of the from and the listview is on the right.
When i click on an item in treeview i got code to force the listview to
selected the appropriate item and set focus on the listview, but the focus
never work it always stay on the treeview control.
Here my sample code
private void Treeview1_NodeClick(..)
{
listview1.items[0].selected = true;
listview1.focus();
}
Can anyone see what is wrong with my codes.... i really really want the
listview to have the focus when the user had clicked on any item in the
treeview. The reason because i have a lot of comment from my users said
that the listview should have the focus so that they can do other
performance without having to click on the listview first.
Any sample codes would be appreciative, looking forward hearing from you
all.
Regards
In my C# application i have a treeview control and listview control, the
treeview is on the left side of the from and the listview is on the right.
When i click on an item in treeview i got code to force the listview to
selected the appropriate item and set focus on the listview, but the focus
never work it always stay on the treeview control.
Here my sample code
private void Treeview1_NodeClick(..)
{
listview1.items[0].selected = true;
listview1.focus();
}
Can anyone see what is wrong with my codes.... i really really want the
listview to have the focus when the user had clicked on any item in the
treeview. The reason because i have a lot of comment from my users said
that the listview should have the focus so that they can do other
performance without having to click on the listview first.
Any sample codes would be appreciative, looking forward hearing from you
all.
Regards