944,053 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 37915
  • C# RSS
Oct 3rd, 2006
0

Combo Box

Expand Post »
I am new to c#. i wanted to know how to add or remove options in a combo box or list box during runtime
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Utkarsh Kukreti is offline Offline
8 posts
since Oct 2006
Oct 3rd, 2006
0

Re: Combo Box

maybe this microsoft tutorial will help???
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,954 posts
since Aug 2005
Oct 3rd, 2006
0

Re: Combo Box

maybe this microsoft tutorial will help???
um that link sucks.

but to add an item its something like

comboBoxID.Items.Add("text","value");
Reputation Points: 23
Solved Threads: 16
Posting Whiz in Training
plazmo is offline Offline
206 posts
since Aug 2005
Oct 8th, 2006
0

Re: Combo Box

Click to Expand / Collapse  Quote originally posted by plazmo ...
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#
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Utkarsh Kukreti is offline Offline
8 posts
since Oct 2006
Oct 8th, 2006
0

Re: Combo Box

It's the same way in J#.
Reputation Points: 53
Solved Threads: 6
Junior Poster in Training
Inanna is offline Offline
90 posts
since Sep 2006
Oct 9th, 2006
0

Re: Combo Box

Click to Expand / Collapse  Quote originally posted by Inanna ...
It's the same way in J#.
no it is not
there is no option called .items.add
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Utkarsh Kukreti is offline Offline
8 posts
since Oct 2006
Oct 9th, 2006
0

Re: Combo Box

Quote ...
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.
Reputation Points: 53
Solved Threads: 6
Junior Poster in Training
Inanna is offline Offline
90 posts
since Sep 2006
Oct 9th, 2006
0

Re: Combo Box

Click to Expand / Collapse  Quote originally posted by Inanna ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Utkarsh Kukreti is offline Offline
8 posts
since Oct 2006
Oct 9th, 2006
1

Re: Combo Box

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.
Reputation Points: 53
Solved Threads: 6
Junior Poster in Training
Inanna is offline Offline
90 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Please help...button not firing
Next Thread in C# Forum Timeline: operator error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC