![]() |
make selected item highlighted in listview
How do I highlight (that is the item is dark blue) a listview item in code?
I need this to happen after messagebox gets displayed in the listview mouseup event. The item was highlighted before the mouseup event, but after the messagebox it will be still selected but in pale grey. Thanks for any advice. RBS |
make selected item highlighted in listview
Hi RBS:
I'm not real familiar with ListView controls, but can you use the SetFocus method? Regards, Vasant "RB Smissaert" wrote in message ... How do I highlight (that is the item is dark blue) a listview item in code? I need this to happen after messagebox gets displayed in the listview mouseup event. The item was highlighted before the mouseup event, but after the messagebox it will be still selected but in pale grey. Thanks for any advice. RBS |
make selected item highlighted in listview
Vasant,
That is how I did it in the end. You have to put the focus first in a different control and then on the listview. I suppose you know all this already but the control is much more complex than the listbox and I think there are some bugs with it. RBS "Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message ... Hi RBS: I'm not real familiar with ListView controls, but can you use the SetFocus method? Regards, Vasant "RB Smissaert" wrote in message ... How do I highlight (that is the item is dark blue) a listview item in code? I need this to happen after messagebox gets displayed in the listview mouseup event. The item was highlighted before the mouseup event, but after the messagebox it will be still selected but in pale grey. Thanks for any advice. RBS |
All times are GMT +1. The time now is 09:20 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com