Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
2.50/5 (4 votes)
See more:
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
Updated 12-Sep-12 1:43am
v5
Comments
Sergey Alexandrovich Kryukov 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 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 Rudolf Bihy 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

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
 
Share this answer
 
Comments
Al-Samman Mahmoud 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900