Winform - AutoCompleteBox - single select

2 posts, 0 answers
  1. Frenske
    Frenske avatar
    6 posts
    Member since:
    Jun 2007

    Posted 01 Mar 2016 Link to this post


    I want to make use of the AutoCompleteBox so the user has a nice autocomplete feature, without him being able to input other values then the ones in the autocomplete items. I've been looking for this some time now, but it seems like in WPF and Web it's the SelectionMode property. But in my Winform project, there is no such a property.

    Can you tell me if this is possible and if so, how (which winform property i need to set). I'm using latest .net, latest telerik updates etc. Control is RadAutoCompleteBox.

    Thanks a lot!

    best regards,



  2. Dimitar
    Dimitar avatar
    2983 posts

    Posted 02 Mar 2016 Link to this post

    Hello Francois,

    Thank you for writing.

    This functionality is not available in the WinForms autocomplete box. However it can be achieved by using the LostFocus event:
    private void RadAutoCompleteBox1_LostFocus(object sender, EventArgs e)
        int lastIndex = radAutoCompleteBox1.Text.LastIndexOf(';');
        if (lastIndex == -1)
            radAutoCompleteBox1.Text = "";
            string text = "";
            foreach (var item in radAutoCompleteBox1.Items)
                text += item.Text + ';';
            radAutoCompleteBox1.Text = text;

    Let me know if I can assist you further.

Back to Top