Saving a WinForm and its controls properties from run to run

G

Guest

Hi

I tried asking this in the VC++.Net area with no responses so I'll try here..

I am new to .net programming but am used to Borland C++ Builder (like Delphi). There are third party components available for Borland that you drop on a form and it will save the forms size, position, and all the properties of the form and it's controls (colors, text, checkbox states, etc.). Anyway, is there a way to do this in .net or any components that will do it for you

Thank you
Joe
 
M

Max

To enumerate all controls on form - use Control.Controls collection.
//C#
foreach (System.Windows.Forms.Control ctrl in Controls)
{
//Do Something
}
To enumerate properties of some object use
PropertyInfo[] pi = obj.GetType().GetProperties();
See help on PropertyInfo class to decide what you can do with it.


Joe Thompson said:
Hi,

I tried asking this in the VC++.Net area with no responses so I'll try here...

I am new to .net programming but am used to Borland C++ Builder (like
Delphi). There are third party components available for Borland that you
drop on a form and it will save the forms size, position, and all the
properties of the form and it's controls (colors, text, checkbox states,
etc.). Anyway, is there a way to do this in .net or any components that
will do it for you?
 

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

Top