B
Brian Henry
I have a list box bound to a data set, of course the datasource,datamember,
and valuemember are set, i tell it selecteditem = -1 to make nothing
selected, select mode is set to only one item at a time. When the list fills
the first item in the listbox has a background rectangle drawn but no focus
rectangle (this is NOT a custom drawn listbox, just a standard one).. now i
did set -1 as the selected item, but if i tab to the item the focus
rectangle is now showing over the background rectangle on the 1st item, then
when i tab off the listbox now nothing is selected like it should of been to
start with... what would cause this?! thanks.. the listbox is in a custom
control which is then placed onto a form... if i do it only on a form by
itself it works fine... but when its in a custom control it causes this
problem..
and valuemember are set, i tell it selecteditem = -1 to make nothing
selected, select mode is set to only one item at a time. When the list fills
the first item in the listbox has a background rectangle drawn but no focus
rectangle (this is NOT a custom drawn listbox, just a standard one).. now i
did set -1 as the selected item, but if i tab to the item the focus
rectangle is now showing over the background rectangle on the 1st item, then
when i tab off the listbox now nothing is selected like it should of been to
start with... what would cause this?! thanks.. the listbox is in a custom
control which is then placed onto a form... if i do it only on a form by
itself it works fine... but when its in a custom control it causes this
problem..