Setting AutocompleteMode to Suggest doesn't have an effect
up vote
1
down vote
favorite
I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:
So, when I set AutoCompleteMode property to Suggested, the auto complete doesn't work. The weird thing, is that I have two another comboboxes, with (I would say) the exact same setup, and they work...The autocompletion works on them.
How to debug this?
winforms combobox autocomplete entity-framework-6 bindingsource
add a comment |
up vote
1
down vote
favorite
I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:
So, when I set AutoCompleteMode property to Suggested, the auto complete doesn't work. The weird thing, is that I have two another comboboxes, with (I would say) the exact same setup, and they work...The autocompletion works on them.
How to debug this?
winforms combobox autocomplete entity-framework-6 bindingsource
Maybe you just forgot to set theAutoCompleteSource
property toAutoCompleteSource.CustomSource
(which is mandatory).
– Jimi
Nov 11 at 12:56
@Jimi Oh what a silly error I made. Yes it was it. You can answer the question, and I will accept it.
– Whirlwind
Nov 11 at 12:58
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:
So, when I set AutoCompleteMode property to Suggested, the auto complete doesn't work. The weird thing, is that I have two another comboboxes, with (I would say) the exact same setup, and they work...The autocompletion works on them.
How to debug this?
winforms combobox autocomplete entity-framework-6 bindingsource
I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:
So, when I set AutoCompleteMode property to Suggested, the auto complete doesn't work. The weird thing, is that I have two another comboboxes, with (I would say) the exact same setup, and they work...The autocompletion works on them.
How to debug this?
winforms combobox autocomplete entity-framework-6 bindingsource
winforms combobox autocomplete entity-framework-6 bindingsource
asked Nov 11 at 12:48
Whirlwind
11.4k53091
11.4k53091
Maybe you just forgot to set theAutoCompleteSource
property toAutoCompleteSource.CustomSource
(which is mandatory).
– Jimi
Nov 11 at 12:56
@Jimi Oh what a silly error I made. Yes it was it. You can answer the question, and I will accept it.
– Whirlwind
Nov 11 at 12:58
add a comment |
Maybe you just forgot to set theAutoCompleteSource
property toAutoCompleteSource.CustomSource
(which is mandatory).
– Jimi
Nov 11 at 12:56
@Jimi Oh what a silly error I made. Yes it was it. You can answer the question, and I will accept it.
– Whirlwind
Nov 11 at 12:58
Maybe you just forgot to set the
AutoCompleteSource
property to AutoCompleteSource.CustomSource
(which is mandatory).– Jimi
Nov 11 at 12:56
Maybe you just forgot to set the
AutoCompleteSource
property to AutoCompleteSource.CustomSource
(which is mandatory).– Jimi
Nov 11 at 12:56
@Jimi Oh what a silly error I made. Yes it was it. You can answer the question, and I will accept it.
– Whirlwind
Nov 11 at 12:58
@Jimi Oh what a silly error I made. Yes it was it. You can answer the question, and I will accept it.
– Whirlwind
Nov 11 at 12:58
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
To set up a ComboBox
that automatically completes the user's input string, we need to configure 3 different properties. A description from the Docs:
Use the
AutoCompleteCustomSource
,AutoCompleteMode
, and
AutoCompleteSource
properties to create aComboBox
that
automatically completes input strings by comparing the prefix being
entered to the prefixes of all strings in a maintained source
AutoCompleteCustomSource: the specialized collection of items that provides the source of the Autocomplete strings.
AutoCompleteMode: defines how the input auto-completion is performed.
AutoCompleteSource: specifies which is the source of the completion functionality.
The latter could be the FileSystem
, using the Files or Directories lists in a defined path, the RecentUsedItems
, HistoryList
URLs or, as in this case, AutoCompleteSource.CustomSource, indicating that the source list of items for the completion is provided by an AutoCompleteStringCollection which can be specified assigning the AutoCompleteCustomSource
property a AutoCompleteStringCollection
or another compatible source (a List
for example, since this collection implements the IEnumerable
an IList
interfaces).
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
To set up a ComboBox
that automatically completes the user's input string, we need to configure 3 different properties. A description from the Docs:
Use the
AutoCompleteCustomSource
,AutoCompleteMode
, and
AutoCompleteSource
properties to create aComboBox
that
automatically completes input strings by comparing the prefix being
entered to the prefixes of all strings in a maintained source
AutoCompleteCustomSource: the specialized collection of items that provides the source of the Autocomplete strings.
AutoCompleteMode: defines how the input auto-completion is performed.
AutoCompleteSource: specifies which is the source of the completion functionality.
The latter could be the FileSystem
, using the Files or Directories lists in a defined path, the RecentUsedItems
, HistoryList
URLs or, as in this case, AutoCompleteSource.CustomSource, indicating that the source list of items for the completion is provided by an AutoCompleteStringCollection which can be specified assigning the AutoCompleteCustomSource
property a AutoCompleteStringCollection
or another compatible source (a List
for example, since this collection implements the IEnumerable
an IList
interfaces).
add a comment |
up vote
1
down vote
accepted
To set up a ComboBox
that automatically completes the user's input string, we need to configure 3 different properties. A description from the Docs:
Use the
AutoCompleteCustomSource
,AutoCompleteMode
, and
AutoCompleteSource
properties to create aComboBox
that
automatically completes input strings by comparing the prefix being
entered to the prefixes of all strings in a maintained source
AutoCompleteCustomSource: the specialized collection of items that provides the source of the Autocomplete strings.
AutoCompleteMode: defines how the input auto-completion is performed.
AutoCompleteSource: specifies which is the source of the completion functionality.
The latter could be the FileSystem
, using the Files or Directories lists in a defined path, the RecentUsedItems
, HistoryList
URLs or, as in this case, AutoCompleteSource.CustomSource, indicating that the source list of items for the completion is provided by an AutoCompleteStringCollection which can be specified assigning the AutoCompleteCustomSource
property a AutoCompleteStringCollection
or another compatible source (a List
for example, since this collection implements the IEnumerable
an IList
interfaces).
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
To set up a ComboBox
that automatically completes the user's input string, we need to configure 3 different properties. A description from the Docs:
Use the
AutoCompleteCustomSource
,AutoCompleteMode
, and
AutoCompleteSource
properties to create aComboBox
that
automatically completes input strings by comparing the prefix being
entered to the prefixes of all strings in a maintained source
AutoCompleteCustomSource: the specialized collection of items that provides the source of the Autocomplete strings.
AutoCompleteMode: defines how the input auto-completion is performed.
AutoCompleteSource: specifies which is the source of the completion functionality.
The latter could be the FileSystem
, using the Files or Directories lists in a defined path, the RecentUsedItems
, HistoryList
URLs or, as in this case, AutoCompleteSource.CustomSource, indicating that the source list of items for the completion is provided by an AutoCompleteStringCollection which can be specified assigning the AutoCompleteCustomSource
property a AutoCompleteStringCollection
or another compatible source (a List
for example, since this collection implements the IEnumerable
an IList
interfaces).
To set up a ComboBox
that automatically completes the user's input string, we need to configure 3 different properties. A description from the Docs:
Use the
AutoCompleteCustomSource
,AutoCompleteMode
, and
AutoCompleteSource
properties to create aComboBox
that
automatically completes input strings by comparing the prefix being
entered to the prefixes of all strings in a maintained source
AutoCompleteCustomSource: the specialized collection of items that provides the source of the Autocomplete strings.
AutoCompleteMode: defines how the input auto-completion is performed.
AutoCompleteSource: specifies which is the source of the completion functionality.
The latter could be the FileSystem
, using the Files or Directories lists in a defined path, the RecentUsedItems
, HistoryList
URLs or, as in this case, AutoCompleteSource.CustomSource, indicating that the source list of items for the completion is provided by an AutoCompleteStringCollection which can be specified assigning the AutoCompleteCustomSource
property a AutoCompleteStringCollection
or another compatible source (a List
for example, since this collection implements the IEnumerable
an IList
interfaces).
answered Nov 11 at 13:35
Jimi
6,07421233
6,07421233
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248898%2fsetting-autocompletemode-to-suggest-doesnt-have-an-effect%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Maybe you just forgot to set the
AutoCompleteSource
property toAutoCompleteSource.CustomSource
(which is mandatory).– Jimi
Nov 11 at 12:56
@Jimi Oh what a silly error I made. Yes it was it. You can answer the question, and I will accept it.
– Whirlwind
Nov 11 at 12:58