AutoCompleteStringCollection problem

Discussion in 'ASP .Net' started by jack, Mar 17, 2006.

  1. jack

    jack Guest

    This code dosent display
    data.Add("Csharp");
    data.Add("C sharp");

    couldnt find the reason why ..



    AutoCompleteStringCollection data = new
    AutoCompleteStringCollection();
    data.Add("Csharp");
    data.Add("CSharp");
    data.Add("C#");
    data.Add("C #");
    data.Add("C sharp");
    data.Add("C Sharp");
    comboBox1.AutoCompleteSource =
    AutoCompleteSource.CustomSource;
    comboBox1.AutoCompleteMode =
    AutoCompleteMode.SuggestAppend;
    comboBox1.AutoCompleteCustomSource = data;



    Please help

    Thanks for helping me
     
    jack, Mar 17, 2006
    #1
    1. Advertising

  2. AutoCompleteStringCollection work in Windows Form. If your combox box is a
    System.Windows.Forms.ComboBox, then it won't display in an asp.net form.
    Rather you need to use a System.Web.UI.WebControls.DropDownList which
    doesn't support this kind of feature.

    If this _is_ a winform question, then ur in the wrong newsgroup.

    If you want this type of functionality, you'll need to turn to a 3rd party
    control that either uses a javascript array or Ajax such as
    http://weblogs.asp.net/mschwarz/archive/2005/11/11/430267.aspx


    Karl

    --
    http://www.openmymind.net/



    "jack" <> wrote in message
    news:...
    > This code dosent display
    > data.Add("Csharp");
    > data.Add("C sharp");
    >
    > couldnt find the reason why ..
    >
    >
    >
    > AutoCompleteStringCollection data = new
    > AutoCompleteStringCollection();
    > data.Add("Csharp");
    > data.Add("CSharp");
    > data.Add("C#");
    > data.Add("C #");
    > data.Add("C sharp");
    > data.Add("C Sharp");
    > comboBox1.AutoCompleteSource =
    > AutoCompleteSource.CustomSource;
    > comboBox1.AutoCompleteMode =
    > AutoCompleteMode.SuggestAppend;
    > comboBox1.AutoCompleteCustomSource = data;
    >
    >
    >
    > Please help
    >
    > Thanks for helping me
    >
     
    Karl Seguin [MVP], Mar 17, 2006
    #2
    1. Advertising

  3. jack

    jack Guest

    Thanks for replying me.
    The reference is helpfull.
     
    jack, Mar 20, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    4,035
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,224
    Ted Miller
    Sep 13, 2003
  3. Merek
    Replies:
    0
    Views:
    2,001
    Merek
    Dec 3, 2003
  4. Scott Meddows
    Replies:
    1
    Views:
    422
    John Saunders
    Jun 8, 2004
  5. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    581
    Bullschmidt
    May 11, 2004
Loading...

Share This Page