Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Code to Disable combobox highlighting on select

Im desigining my form and i am using the normal combo box not the drop down list because it doesnt look good. Ive already disabled typing for it but when u click a item it highlights it automatically.what code can i use to disable it from highlighting when a item is selected within the combobox?
(Jan 2, 2015 11:03 AM)+Haze Wrote:  Enable it, don't disable it. If it's disabled how are your users going to use it.
Do this, it will fix it.
[Image: kJ6O0Qk.png]

Changed the drop down style to list.

i did that but it still is highlighting. The idea is to get rid of the blue highlight after a user has clicked a item


(Jan 2, 2015 11:04 AM)nathan72389 Wrote:  there is no easy way of doing it. you could write your own control or use some hackey sendmessage call.

yeah i figured it would take a long time to get rid of it
(Jan 2, 2015 01:04 PM)SaketSaket Wrote:  This might help you..

Code
ComboBox1.SelectedIndex = -1

Regards
Saket

ive tried this before it clears the combo box of its inventory and nothing is left just except for blank space


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by PeraPericJan 10, 2018 03:20 AM 9 286 Jan 10, 2018 03:20 AM
Last Post: th3s3cr3t0n3
[.NET] by adenfrMar 13, 2017 02:17 PM 6 196 Mar 13, 2017 02:17 PM
Last Post: adenfr
[.NET] by GørillaFeb 20, 2017 01:30 PM 13 340 Feb 20, 2017 01:30 PM
Last Post: Gørilla