المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : autocomplete selection



C# Programming
06-21-2009, 09:41 AM
Hi,

Sorry this is gonna sound stupid I expect but here goes

Using

m_AutoCompleteStringCollection = new AutoCompleteStringCollection();
textBoxName.AutoCompleteMode = AutoCompleteMode.Suggest;
textBoxName.AutoCompleteSource = AutoCompleteSource.CustomSource;
textBoxName.AutoCompleteCustomSource = m_AutoCompleteStringCollection;

How, without a mouse, do you select an item for an autocomplete textbox? I have tried key down on the keyboard but that just makes a selection of the first item. I want the user to be able to select any item or type their one choice. This is going to be used as a login where the name can be a known name or a visitor.

Thanks,
Iain