Combo Box

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 8
Reputation: Utkarsh Kukreti is an unknown quantity at this point 
Solved Threads: 0
Utkarsh Kukreti Utkarsh Kukreti is offline Offline
Newbie Poster

Combo Box

 
0
  #1
Oct 3rd, 2006
I am new to c#. i wanted to know how to add or remove options in a combo box or list box during runtime
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,413
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1470
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Combo Box

 
0
  #2
Oct 3rd, 2006
maybe this microsoft tutorial will help???
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: Combo Box

 
0
  #3
Oct 3rd, 2006
Originally Posted by Ancient Dragon View Post
maybe this microsoft tutorial will help???
um that link sucks.

but to add an item its something like

comboBoxID.Items.Add("text","value");
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 8
Reputation: Utkarsh Kukreti is an unknown quantity at this point 
Solved Threads: 0
Utkarsh Kukreti Utkarsh Kukreti is offline Offline
Newbie Poster

Re: Combo Box

 
0
  #4
Oct 8th, 2006
Originally Posted by plazmo View Post
um that link sucks.

but to add an item its something like

comboBoxID.Items.Add("text","value");
AND HOW WILL WE DO IT IN J#
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 90
Reputation: Inanna is on a distinguished road 
Solved Threads: 6
Inanna's Avatar
Inanna Inanna is offline Offline
Junior Poster in Training

Re: Combo Box

 
0
  #5
Oct 8th, 2006
It's the same way in J#.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 8
Reputation: Utkarsh Kukreti is an unknown quantity at this point 
Solved Threads: 0
Utkarsh Kukreti Utkarsh Kukreti is offline Offline
Newbie Poster

Re: Combo Box

 
0
  #6
Oct 9th, 2006
Originally Posted by Inanna View Post
It's the same way in J#.
no it is not
there is no option called .items.add
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 90
Reputation: Inanna is on a distinguished road 
Solved Threads: 6
Inanna's Avatar
Inanna Inanna is offline Offline
Junior Poster in Training

Re: Combo Box

 
0
  #7
Oct 9th, 2006
no it is not
there is no option called .items.add
It's the same way, not the same syntax. Sorry, I should have been more clear. The property in J# is called get_Items() to account for language details. It's always a good idea to look for differences in classes for the different .NET languages on MSDN, because if the feature you want is supported by the framework itself, the language will support it too, and the method for using it will be comparable.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 8
Reputation: Utkarsh Kukreti is an unknown quantity at this point 
Solved Threads: 0
Utkarsh Kukreti Utkarsh Kukreti is offline Offline
Newbie Poster

Re: Combo Box

 
0
  #8
Oct 9th, 2006
Originally Posted by Inanna View Post
It's the same way, not the same syntax. Sorry, I should have been more clear. The property in J# is called get_Items() to account for language details. It's always a good idea to look for differences in classes for the different .NET languages on MSDN, because if the feature you want is supported by the framework itself, the language will support it too, and the method for using it will be comparable.
but still how to add items
please tell in detail,i am new to .NET
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 90
Reputation: Inanna is on a distinguished road 
Solved Threads: 6
Inanna's Avatar
Inanna Inanna is offline Offline
Junior Poster in Training

Re: Combo Box

 
1
  #9
Oct 9th, 2006
MSDN gives example code that adds items. I don't mind, but other people won't like it if you ask a question that's obviously answered by freely available documentation.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC