473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

protect combobox text with its display member.

Can anyone help me, I want a combobox that the use can only input text which exist in its datasource(displaymember).

(some of its properties were set as bellow:
AutoCompleteMode = SuggestAppend
AutoCompleteSource = ListItems)

Thanks for anwsering
and best regards,
Sopheap Panha.
May 18 '11 #1
2 2088
GaryTexmo
1,501 Expert 1GB
Auto complete just suggests completions based on what they've typed. If you only want them to be able to select items that are in the list, you can make it so they can't enter text at all, but can only choose from the dropdown. Try setting the DropDownStyle property to DropDownList. You won't need the auto complete stuff anymore because the user won't be able to type in the input box.
May 18 '11 #2
oh,,,
Do you have any other solution, if the user is also allowed to type.
(type words that only exist in its datasource)

Thanks.
May 19 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Thelma Lubkin | last post by:
I am trying to limit the user's options to the choices offered by the combobox text, but I don't want this to extend to how he spaces out the text, e.g. 'abcdefg' and 'ab cd efg' should be...
1
by: thomaz | last post by:
When i make an update in my database, the modifications are showing in all TEXTBOX but i canīt see the new values in a combobox text. If i close the form and open it again the new values will...
0
by: thomaz | last post by:
I use the DataSource like below to fill a Combobox: comboBox1.DataSource = dataSet1.Tables; comboBox1.DisplayMember = "ProductName"; When the user types any keyboard key i use the DROPDOWN...
2
by: Hanumanth Reddy | last post by:
Any one could help how to bind two table field values into combobox display member property. I mean i have two fields in a table. One is states description and another is states codes.I want to...
2
by: Dica | last post by:
i've got a table in my dataSet that looks like this: <tblTasks> <taskID>0</taskID> <projectID>0</projectID> <summary>-- Select A Task --</summary>
6
by: Harshil | last post by:
I am developing an application in vb.net and oracle as my database. my goal is to display the county names (display member) to the user while store county id (value member) in the combo box. when I...
1
by: Richard Bond | last post by:
Hi, I have a combobox that is bound to a list of text and values in a dataset. It is in Dropdown mode - which enables the user to type in their own text if they so wish. when I process the form,...
1
by: Stewart Lane | last post by:
Can the display member of a combobox who's datasource is a dataset generated from a SQl command in a data adpater BE SET to the concatenation of two fields, like fname+' '+lname? This is my SQL...
0
by: yalanue | last post by:
I want to create a combobox with its displaymember populated from a datatable. But once I get it run, the default display member in the combobox is always the first row of the displaymember list....
1
by: shubham rastogi | last post by:
I am using a combobox.. and I want to display two columns combobox using the diplay member property...for example I have a table sam and it has two columns A and B . following are details of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.