3 Replies - 674 Views - Last Post: 21 January 2013 - 10:03 AM Rate Topic: -----

#1 the5thelement  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 59
  • Joined: 30-July 12

Saving Changes Made With PropertyGrid

Posted 21 January 2013 - 09:28 AM

Is there a way to save changes made in a propertygrid?
Is This A Good Question/Topic? 0
  • +

Replies To: Saving Changes Made With PropertyGrid

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8964
  • View blog
  • Posts: 33,624
  • Joined: 12-June 08

Re: Saving Changes Made With PropertyGrid

Posted 21 January 2013 - 09:35 AM

Yes, but you would save the values of the object and not the pretty UI control (aka the property grid).
Was This Post Helpful? 0
  • +
  • -

#3 the5thelement  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 59
  • Joined: 30-July 12

Re: Saving Changes Made With PropertyGrid

Posted 21 January 2013 - 10:00 AM

I am working on a project that allows the user to change values in a property grid. Only thing is I am not quite sure how to save the values.

Let say I ran my program and double clicked on the form. It would open
another form with a property grid for form1. I use the grid to change
the size of the form, the background color, and the borderstyle. How
would I save the values so whenever start the program it uses the new
values.
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8964
  • View blog
  • Posts: 33,624
  • Joined: 12-June 08

Re: Saving Changes Made With PropertyGrid

Posted 21 January 2013 - 10:03 AM

Again.. the property grid is just a nice wrapper UI control, right? It doesn't nothing but provide a nifty framework for properties of your form1. Your form1 is where the data is.. so you can save it how ever you feel like.. in the my.settings, in a database, textfile, or what what evs.

The key thing is you do *NOT* save anything from the property grid... you would save things from their respective properties.. ie the form's height and width, etc.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1