Jump to content

Modo autocomplete da combobox atraves de base de dados vb.net


brandnew
 Share

Recommended Posts

Tal como eu disse no assunto queria fazer com que a combobox se completasse automáticamente mas com os valores da base de dados. O codigo que eu tenho e o seguinte. Alguem me pode ajudar pfv?

        ComboBox1.AutoCompleteCustomSource.AddRange(......)

        ComboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend

        ComboBox1.AutoCompleteSource = AutoCompleteSource.CustomSource

Link to comment
Share on other sites

pois. Mas como e que eu faço isso? É que eu faço

ComboBox1.AutoCompleteCustomSource.AddRange(combobox1.Text)

supostamente preencheria com os valores que ja estao na combobox1 mas ele dame 1 erro e nao vai la buscar

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.