943,522 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 511
  • C# RSS
Jan 15th, 2009
0

Combo Box

Expand Post »
Which method can be used to set the values in combo box from within code?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
gallian99 is offline Offline
77 posts
since Jan 2009
Jan 15th, 2009
0

Re: Combo Box

how about looking in MSDN for ComboBox Class?
Last edited by Antenka; Jan 15th, 2009 at 5:05 pm.
Reputation Points: 293
Solved Threads: 82
Posting Whiz
Antenka is offline Offline
361 posts
since Nov 2008
Jan 15th, 2009
0

Re: Combo Box

How about using ComboBox instance then press "dot"....?
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Jan 15th, 2009
1

Re: Combo Box

hi
this simple example u can set data in combobox
for (int i = 0; i < 10; i++)
{
comboBox1.Items.Add(i);
}
comboBox1.SelectedIndex = 0;

plz follow the advice of "Atenka" and "Ramy Mahrous"

bye
Reputation Points: 28
Solved Threads: 5
Light Poster
BlackSun is offline Offline
46 posts
since Feb 2008
Jan 16th, 2009
0

Re: Combo Box

Pressing F1 on a component will take you to the MSDN help which has examples, its really not overly hard
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

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: palindrome
Next Thread in C# Forum Timeline: sql





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


Follow us on Twitter


© 2011 DaniWeb® LLC