0

I guess it's a silly question, but maybe someone could help me...

I'm trying to find System.Collections.arraylist in the Settings tab of the project and can't seem to find it. Am I missing something here?

I want to save a listbox (in the form of Arraylist) to the Settings so I need to save a parameter of type: System.Collections.arraylist.

 Properties.Settings.Default.listbox_items = new ArrayList(PkgFilesListbox.Items);

So, basically, listbox_items should be of type System.Collections.Array, right?

But I can't find it in VS2012 in the Settings tab (in the project properties). I have bool, int, string, System, etc., but under System, there's no Collections.

just like here

Community
  • 1
  • 1
roy.me
  • 421
  • 2
  • 7
  • 19

1 Answers1

0

From the type dropdown box choose "Browse...":

Select browse...

A dialog will open up - you should be able to find System.ArrayList.Collections in there. (If you can't, just type it in the textbox at the bottom of the dialog - that's probably easier anyway)

Enter the type name

Mike Goatly
  • 7,380
  • 2
  • 32
  • 33