ListBox SelectionMode Bug

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Setting selectionmode to none on a bound listbox control doesn't allow
viewing items anymore. There is a kb article about getting an exception
if you do this in design mode. I do it through code.
http://support.microsoft.com/default.aspx?scid=kb;en-us;827047


Is there a work around if you don't want editing (drag/drop, double
click) of the listbox but still want the scroll bars (killed with
..Enabled)?
 
Hello,

Thanks for your post. I reviewed your description carefully, and now I'd
like to share the following information with you:

1. Data-bound ListBox control does not support the SelectionMode property
set to NONE. The bug in the KB article 827047 is in the Form Designer which
still allows to set the SelectionMode property to NONE and does not prompt
you to provide a valid value.

The bottom line is, we should not set SelectionMode to NONE in a data-bound
ListBox.

2. >> Is there a work around if you don't want editing (drag/drop, double
click) of the listbox but still want the scroll bars (killed with .Enabled)?

I appologize that I am not sure what you mean by editing the ListBox. The
ListBox is not editable by default. In addition, you can set its AllowDrop
property to False to disable it from receiving drap-drop notifications.
Could you please tell me the detailed information on what you intend to do?

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top