Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > AutoCompleteStringCollection problem

Reply
Thread Tools

AutoCompleteStringCollection problem

 
 
jack
Guest
Posts: n/a
 
      03-17-2006
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

 
Reply With Quote
 
 
 
 
Karl Seguin [MVP]
Guest
Posts: n/a
 
      03-17-2006
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/arch...11/430267.aspx


Karl

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



"jack" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> 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
>



 
Reply With Quote
 
 
 
 
jack
Guest
Posts: n/a
 
      03-20-2006
Thanks for replying me.
The reference is helpfull.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments