|
Rank: Advanced Member Groups: Member
Joined: 10/21/2009 Posts: 39
|
When I set the ComboBox Enabled property to false, I am still able to select items from the DropDown portion of it. When I set the DropDown portion of it to false as well, it's forecolor becomes greyed out but it is still selectable.
How can I disable the ComboBox control so that it is greyed out and non typeable and non selectable.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have confirmed that this is a bug. We will fix it and provide you a new build as soon as possible.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 10/21/2009 Posts: 39
|
Thanks, I look forward to the fix. I also don't seem to be able to set the SelectedValue of the ComboBox. The only way I can see to do it is by setting the SelectedValue of the ListBox inside the ComboBox but that doesn't seem to work.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have posted a new build that fixed this problem. Please see your private message for the download location.
As to setting SelectedValue, that is not supported on the ComboBox as not all ComboBox has the notion of "selected value". For example, one user may want to place three buttons in the ComboBox drop down and when user clicks any of the buttons, it would set the ComboBox's Text to a different value. In this case there is no such thing as "SelectedValue" for this ComboBox. As a result, you can only set the ComboBox's Text value.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 10/21/2009 Posts: 39
|
Ok is there a way to set the selected index on the ListBox that is inside a ComboBox then? Currently when I set the SelectedIndex on the ListBox inside a ComboBox it has no effect.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
That's an issue. The ComboBox supposes to automatically match an item from the listbox with its current text value. So you do not need to manually set any selected item. This will be fixed in the next build.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 10/21/2009 Posts: 39
|
You are right. If I set the text of the ComboBox Text then the correct item in the enclosed ListBox list is selected. Settng the selected item of a ListBox that is enclosed by a ComboBox does nothing.
Thanks.
|
|