Click here to Skip to main content
15,893,790 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Writing a code enhancer Pin
psatvz13-Sep-02 6:21
psatvz13-Sep-02 6:21 
GeneralRe: Writing a code enhancer Pin
psatvz16-Sep-02 23:38
psatvz16-Sep-02 23:38 
GeneralRe: Writing a code enhancer Pin
James T. Johnson17-Sep-02 1:30
James T. Johnson17-Sep-02 1:30 
GeneralRe: Writing a code enhancer Pin
psatvz18-Sep-02 0:03
psatvz18-Sep-02 0:03 
GeneralRe: Writing a code enhancer Pin
psatvz18-Sep-02 5:09
psatvz18-Sep-02 5:09 
General.net embedded Windows Form Pin
Eric Lacroix11-Sep-02 18:07
Eric Lacroix11-Sep-02 18:07 
GeneralEnumerating an Enum Pin
Jamie Nordmeyer11-Sep-02 10:41
Jamie Nordmeyer11-Sep-02 10:41 
GeneralRe: Enumerating an Enum Pin
David Stone11-Sep-02 15:59
sitebuilderDavid Stone11-Sep-02 15:59 
This is how you would do it:
myComboBox.Items.AddRange(System.DayOfWeek.GetNames());
This'll get the names in a string[]. The Items property of the ComboBox is an ObjectCollection, so it has the AddRange method. Which has a signature of:
public void AddRange(object[] items);
Because string is an object, you will be able to add the items to the combobox.

The problem with what you were trying to do is that you defined I as IEnumerable. A class implements IEnumerable to let it's consumer know that it can enumerate through it's collection. You can't loop through an object's IEnumerables because that doesn't exist. Smile | :)

Hope I helped.

David Stone

But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*.

Shog9

GeneralRe: Enumerating an Enum Pin
Jamie Nordmeyer11-Sep-02 18:09
Jamie Nordmeyer11-Sep-02 18:09 
GeneralRe: Enumerating an Enum Pin
Heath Stewart19-Sep-02 11:47
protectorHeath Stewart19-Sep-02 11:47 
GeneralNews about generic Pin
elnino10-Sep-02 7:05
elnino10-Sep-02 7:05 
GeneralRe: News about generic Pin
Joao Vaz12-Sep-02 4:22
Joao Vaz12-Sep-02 4:22 
GeneralCreating a wizard with winforms Pin
Noam Ben Haim10-Sep-02 4:31
Noam Ben Haim10-Sep-02 4:31 
GeneralRe: Creating a wizard with winforms Pin
Michael P Butler10-Sep-02 5:23
Michael P Butler10-Sep-02 5:23 
Generalfyi .. .Net's Webcontrols do not generate proper XHTML tags. Pin
Thesisus8-Sep-02 10:25
Thesisus8-Sep-02 10:25 
GeneralRe: fyi .. .Net's Webcontrols do not generate proper XHTML tags. Pin
Chris Maunder10-Sep-02 7:08
cofounderChris Maunder10-Sep-02 7:08 
GeneralRe: fyi .. .Net's Webcontrols do not generate proper XHTML tags. Pin
Paul Watson12-Sep-02 21:36
sitebuilderPaul Watson12-Sep-02 21:36 
General.NET and COM interop Pin
Jörgen Sigvardsson8-Sep-02 3:44
Jörgen Sigvardsson8-Sep-02 3:44 
GeneralRe: .NET and COM interop Pin
Stephane Rodriguez.8-Sep-02 11:01
Stephane Rodriguez.8-Sep-02 11:01 
QuestionC# or C++ ? Pin
Maximilien6-Sep-02 3:06
Maximilien6-Sep-02 3:06 
AnswerRe: C# or C++ ? Pin
Kevin McFarlane6-Sep-02 7:28
Kevin McFarlane6-Sep-02 7:28 
AnswerRe: C# or C++ ? Pin
Paul Ingles8-Sep-02 10:41
Paul Ingles8-Sep-02 10:41 
General.NET My Services SDK/HsSoapExtension Pin
Phil Harding6-Sep-02 2:38
Phil Harding6-Sep-02 2:38 
GeneralRe: .NET My Services SDK/HsSoapExtension Pin
elnino10-Sep-02 7:02
elnino10-Sep-02 7:02 
GeneralAdding Tree control to a webform (ASP.Net) Pin
dre@mer5-Sep-02 1:28
dre@mer5-Sep-02 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.