PropertyGrid and app.config



Hi all!

I've been looking for a simple way to edit my app.config file through my
application to let the users edit their user settings.
The simpliest way is to add a PropertyGrid into a form and then set
SelectedObject to My.Settings (in VB.NET). This works well, but one of
by settings is a printer name... so I want to provide a list of
installed printers to the user.
I read this could be done by create a StringConvertor class and then
assign it to the property. But my problem is that I am not working with
a class of mines, but with app.config. So I don't think it is a good
idea to modify VS generated code...

Any idea?



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question