Setting AutocompleteMode to Suggest doesn't have an effect









up vote
1
down vote

favorite
1












I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:



combobox tasks image



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?










share|improve this question





















  • 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














up vote
1
down vote

favorite
1












I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:



combobox tasks image



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?










share|improve this question





















  • 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












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:



combobox tasks image



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?










share|improve this question













I have few comboboxes. I initialize their datasources through binding sources (I use EF6). My Combobox Tasks looks like this:



combobox tasks image



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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 at 12:48









Whirlwind

11.4k53091




11.4k53091











  • 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
















  • 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















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












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 a ComboBox 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).






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    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

























    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 a ComboBox 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).






    share|improve this answer
























      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 a ComboBox 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).






      share|improve this answer






















        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 a ComboBox 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).






        share|improve this answer












        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 a ComboBox 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).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 11 at 13:35









        Jimi

        6,07421233




        6,07421233



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            這個網誌中的熱門文章

            Barbados

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3