|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
New entry in comboxHi all,
I currently have a combobox that is filled with names and that works great. I am using the SelectedIndexChanged event to see when the user clicks/selects an existing entry in the combobox. When that happens, a sub is called to pull the related data from a database and display on the screen. My question is about when the user types in an entry that is not in the combobox. At that point the entry fields should be cleared and the user can fill them out and add the record. Can I use the SelectedIndexChange to see wehter or not the typed in text matches an entry? If not, what would be the best route to accomplish this? Thanks in advance, George I assume the user will have to hit the enter key when he is finished typing
or some other trigger to provide an indication that he is finished. You can use the FindStringExact method to determine if what he typed is in the combo box. -- Show quoteHide quoteDennis in Houston "George" wrote: > Hi all, > > I currently have a combobox that is filled with names and that works great. > I am using the SelectedIndexChanged event to see when the user clicks/selects > an existing entry in the combobox. When that happens, a sub is called to > pull the related data from a database and display on the screen. > > My question is about when the user types in an entry that is not in the > combobox. At that point the entry fields should be cleared and the user can > fill them out and add the record. > > Can I use the SelectedIndexChange to see wehter or not the typed in text > matches an entry? If not, what would be the best route to accomplish this? > > Thanks in advance, > > George
Do properties return byref or byval?
select text in textbox call method on passed form VB .Net with ADSI problem Capitalize Variable Names Easily upgrade B to VB.NET Basic Question - Working with forms Convert IsMissing, IsNull, VBempty to vb.net Operators do not work in VB.NET with a C# referenced assembly Recast an exception to its original type |
|||||||||||||||||||||||