Phil J Fry Phil J Fry - 1 year ago 87 Question

Best Practice (reading external data)

I am writing a Visual Basic Windows Form Application and there are going to be numerous settings that I will need to check on initial form load. Example: user settings

I need to quickly determine screen resolution, personal application background color, and other general user settings and also frequently used items that will populate on the initial splash screen.

I was thinking of switching over to an XML file to store and load the configuration settings.
What is best practice for this?

Answer Source

I wouldn't use an XML file for this because it'll be a pain to manage across multiple users. Use the user settings feature of the language. It'll help you with multiple users and different settings as well because they will be stored in the user's profile.

You can access settings like this:


Here's an example for a XAML application but it should fit the general idea:


See this post for VB specific:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download