Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PropertyGrid and app.config

9 views
Skip to first unread message

Boblemar

unread,
Nov 24, 2009, 3:37:05 AM11/24/09
to
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?

Thanks,

Bob

0 new messages