Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows
When the mouse select an item in a listbox the item is surrounded by spotted rectangle ,even after making Selection Mode "None" can I remove this box !!!
I am working with C# windows forms not WPF
like this
 
    ...............................................                                              
    .  I am a student in biology lab          -   .
    ...............................................
Posted 11-Sep-12 14:48pm
Edited 12-Sep-12 1:43am
v5
Comments
Sergey Alexandrovich Kryukov at 11-Sep-12 20:59pm
   
What do you call a "spotted rectangle" should really be defined. The "pointed box" does not add anything to understanding of what it is, only confuses.
Perhaps, this is a problem of English usage, then you can get an idea what "spotted" and "pointed" mean:
For example, "spotted salamander" means with spots on its skin: http://en.wikipedia.org/wiki/Spotted_Salamander
and "pointed hat" (in the form of a sharp cone, as if it "points" upward like an arrow): http://en.wikipedia.org/wiki/Pointed_hat
 
Not close to what you mean? Then you should use different word and provide exact definitions. :-)
 
--SA
Sergey Alexandrovich Kryukov at 11-Sep-12 21:05pm
   
Besides, you should point (pun unintended) to an exact type of "ListBox". There are different but similar types named like this. In all cases, you need to tag (should I have said "spot"? :-) your application type or the UI library in use (WPF? Forms? Silverlight? ASP.NET? what?).
 
Please, no offense. This forum and many members including myself belong to different cultures and are very tolerant to mistakes in English, as well as most native English-speaking members; there is nothing terrible in making them; it's just some things should be formulated more or less accurately to make things understandable and avoid unwanted waste of time.
 
--SA
Manfred R. Bihy at 14-Sep-12 5:10am
   
Did my solution help you? If it did I'd appreciate a vote on it and if your problem was solved also accept it as a solution.
Thank you!

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

What you are most probably talking about is the dotted line around the selection of a listbox. There is a discussion on SO that talks about how it can be achieved to omit having that dotted border:
 
WPF: Remove dotted border around focused item in styled listbox[^]. Refer to Jobi Joys answer.
 
Regards,
 
— Manfred
  Permalink  
Comments
Al-Samman Mahmoud at 14-Sep-12 11:37am
   
Sorry for being late
and thank U very much :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid