简体   繁体   中英

Visual Basic Settings File

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM