c# - ListBox with nothing selected shows highlighted entry -


my listbox set selectionmode=multisimple. starts life nothing selected, , nothing highlighted. if select entry (other top-most one), selects item, , highlights it. if select same entry again, de-selects it, , selectedxxxx values indicate nothing selected, topmost line highlighted in error. going wrong, , how fix it? thanks

the first item in list box or dropdown combo box id 0. should set list box selection index -1 make sure nothing selected or highlighted. setting 0 sets list box (or comb box) select first item.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -