PC Review


Reply
Thread Tools Rate Thread

PropertyGrid and app.config

 
 
Boblemar
Guest
Posts: n/a
 
      24th Nov 2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: PropertyGrid and CommandsVisibleIfAvailable problem? Sijin Joseph Microsoft Dot NET Framework 0 27th Aug 2004 10:09 AM
TypeConverter, PropertyGrid and Events Moises Cuellar Jr. Microsoft Dot NET Framework 0 30th Nov 2003 12:44 AM
Problem with PropertyGrid and Collection of Strings Terry Microsoft Dot NET Framework Forms 1 13th Aug 2003 02:37 PM
Mixture of PropertyGrid and DataGrid Shukow Microsoft Dot NET Framework Forms 0 27th Jul 2003 03:19 PM
PropertyGrid and interfaces Peter Gomis Microsoft Dot NET Framework Forms 4 16th Jul 2003 07:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:14 AM.