Properties Dialog Control
I am moving a project from VB6 to C#. In VB6 we used Smart UI to create a properties dialog box. Does anyone know how to create a properties dialog box in C#. I have been told to use a DataGrid - but can't figure out how to have groups of properties.
I can't use the PropertyGrid Control either because it only takes a control for input - I need to dynamically add, remove and hide properties.
Thanks
Robert
Re: Properties Dialog Control
Yes, you can use the built in propertygrid control. Use the .SelectedObject property to assign the class or control to bind to it.
http://msdn2.microsoft.com/en-us/lib...tedobject.aspx
Re: Properties Dialog Control
Thanks for the reply - I need to be able to add to the property grid dynamically - If I use a class or control they will always have the same captions - I would like to be able to have a collection class style - so I could just do a .add(Caption,Value, Style)
Thanks again
Robert
Re: Properties Dialog Control
I have seen a article on http:www.codeproject.com that does the dynamic properties.
I'll see if I can find it again.
Re: Properties Dialog Control
Re: Properties Dialog Control
Thanks for that the PropertyGridEx was exactly what I was looking for.
Rob