Dynamic Properties. What the point?

  • Thread starter Thread starter Rene
  • Start date Start date
R

Rene

I have been playing around with the "Dynamic Properties" of the controls and
for the life of me, I can't figure out why would anybody care about using
feature.

It looks like the only things that this feature does is store and retrieve
values from the app.config file! The thing is that, there is already a way
to do this during runtime!! In fact, that's what happens once the app starts
running under "Windows Form Designer generated code"!!

Other than just some kind of time saver (arguably) is there something that
I am missing here, is there some big benefit on using this feature that I
don't know about?



Thank you.
 
Hi Rene

You could (note not should) use this for something like a database
connection string - then if you change your database, you just change the
config file - no need to rebuild your application. And you are correct that
there are lots of other ways of doing this - but the dynamic properties
mechanism means that the design time environment writes the code for you...

HTH

Nigel Armstrong
 
Back
Top