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
Post a Comment