Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using .net framework 3.5 windows forms.

I have three tabs on a tab control
On the first tab there is a drop down with auto suggest mode
When I select a value in the drop down which does not match any value in the drop down, the drop down suggets all values
When I change the tab the suggested value of the drop down is available in the next tab.
I can select the value in this tab and when I check the first tab the drop down has the selected value
How to hide the drop down when moving to othe tabs.
When the value is matching a record in the drop down the problem does not occur as on tab chnage it selects the value.

I have attached images here:
When drop down is selected
http://imgur.com/AE4qD

When tab is changed
http://i.imgur.com/DBfov.jpg
Posted
Updated 28-Aug-11 21:04pm
v3

1 solution

It seems to be a bug in the AugoSuggest feature of the dropdown. You can try turning off Auto suggest when the tab becomes invisible and then turn it on when the tab is selected.

I haven't tested this code, just out of my mind:
C#
void TabChanged(........) {
    if (tabControl.SelectedIndex = 0) { //First tab
        //Turn on auto suggest
    } esle {
        //Turn off auto suggest
    }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900