C# Properties Form

Associate
Joined
25 Jul 2003
Posts
1,980
Hi,

I'm currently trying to write a form which basically presents a load of options to the user. Something like:

background colour <Colour select>
Opacity <percentage>
Size <w,h>

Infact what I am after is almost exactly like the "properties" window for forms in visual studio. Kind of like a grid with 2 columns, where the left column has the name of the property and the right column has whatever is suitable for the prorperty type (e.g: a drop down colour picker, a slider, a string, a drop down for true/false etc etc).

Does anyone have any ideas or pointers as to how I can achieve this. I've found the c# forms stuff extremely hard to grasp compared to java swing. It seems very hard to actually do anything except use the standard components in a standard way!

If anyone knows any good tutorials about how I can do this then I would be very grateful. Presumably I need to implement something custom to achieve what I'm after?
 
Nope.. well you'll need to check but i'm 100% sure there is actually a properties control you can just slap on a form in VB.NET 2.0 so I can't see why it wouldn't be there for c# also.

Edit : Yes it's there in c# also called the propertygrid control, just slap one wherever you need and set it's selectedobject property to a an instance of the object you wish to control.
 
Last edited:
Back
Top Bottom