Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Keep a selection highlighted in a listView when it loses the focus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Guillaume Charhon - 06 Jun 2007 09:33 GMT
Hi,

I've created a ListView with some images.
I can selected an image, but when the focus leaves the listView, the
item doesn't appear highlighted.

I've tried to change the property HideSelection to false, but it doesn't
  work.

Thank you for your help.
Jeff Johnson - 07 Jun 2007 21:27 GMT
> I've created a ListView with some images.
> I can selected an image, but when the focus leaves the listView, the item
> doesn't appear highlighted.
>
> I've tried to change the property HideSelection to false, but it doesn't
> work.

If you mean the image itself no longer appears highlighted, I believe that
behavior is by design. When HideSelection is false, you should notice that
the TEXT of the item is still highlighted, although in the "inactive"
highlight color. To achieve what you want you'd probably have to resort to
owner-drawn items.
Guillaume Charhon - 08 Jun 2007 19:05 GMT
tanks.

Jeff Johnson a écrit :

>> I've created a ListView with some images.
>> I can selected an image, but when the focus leaves the listView, the item
[quoted text clipped - 8 lines]
> highlight color. To achieve what you want you'd probably have to resort to
> owner-drawn items.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.