Reputation: 187
I am working on a visual basic project where I have my own classes of objects. I would like to save them into the settings file. When I go to look up the type in the settings file, I cannot find a way to declare a setting as one of my own classes. I assume that this is not possible. Also, I cannot save arrays to a single setting file correct? For each element in an array(assuming the type is a type that is allowed in a setting), I need to save each element to its own setting, right?
Thanks.
JD
Upvotes: 1
Views: 163
Reputation: 942518
It is possible. You must add a Class Library project to your solution that contains the Public Class. Right-click your EXE project and choose Add Reference, select your class library project. Ensure everything is built.
You can now click the arrow on the Type column in the Settings designer page and choose Browse. Your class library project appears in the list, select the class.
Upvotes: 1