How can I Allow focus for multiple controls?
-
Hi all, My main application form occupies two listview controls. Whenever I select a line in one of the listviews, I lose the selection of the selected line in the 2nd listview. The solution of setting the 'HideSelection' property to 'true' is not good enough since I want the selected lines in both listviews to be colored blue, not grey. Any suggestions? Thanks a lot, Eyal.
-
Hi all, My main application form occupies two listview controls. Whenever I select a line in one of the listviews, I lose the selection of the selected line in the 2nd listview. The solution of setting the 'HideSelection' property to 'true' is not good enough since I want the selected lines in both listviews to be colored blue, not grey. Any suggestions? Thanks a lot, Eyal.
-
Write your own code to change the colour of the whole row when it is selected.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
OK, I guess you mean I should select custom color for the line when the control is not in focus (in case 'HideSelection' property iquals 'true'). How do I do that? Thanks!
Get a reference to the item(s) that are selected from the
SelectedItems
property of the control. Then set theBackColor
property of each item to an appropriate colour.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush