1 Attachment(s)
[RESOLVED] The storage format of PropertyGrid
I'm working on a PropertyGrid that I want to store in the same format as VB.NET PropertyGrid. I wonder what is the storage format of VB.NET PropertyGrid? Is it XML? Thanks.
Re: The storage format of PropertyGrid
Quote:
Originally Posted by
SearchingDataOnly
I'm working on a PropertyGrid that I want to store in the same format as VB.NET PropertyGrid. I wonder what is the storage format of VB.NET PropertyGrid? Is it XML? Thanks.
Do you mean it's internal format? When using VS the code itself is where the PropertyGrid gets the information from...
Re: The storage format of PropertyGrid
IT comes from the .designer.vb file...
-tg
Re: The storage format of PropertyGrid
Quote:
Originally Posted by
PlausiblyDamp
Do you mean it's internal format? When using VS the code itself is where the PropertyGrid gets the information from...
Yes, I mean the storage format from the source code, just as the VB6-Form format is stored in FRM/FRX. The PropertyGrid of VB6-FormDesigner reads the corresponding information from FRM/FRX.
Quote:
Originally Posted by
techgnome
IT comes from the .designer.vb file...
-tg
I looked at .designer.cs, which contains executable code. Are you sure that that WinForm ProperGrid extracts the control-properties information from these executable shource codes? I thought ProperGrid was reading information from XML.
Re: The storage format of PropertyGrid
Quote:
Originally Posted by
SearchingDataOnly
Yes, I mean the storage format from the source code, just as the VB6-Form format is stored in FRM/FRX. The PropertyGrid of VB6-FormDesigner reads the corresponding information from FRM/FRX.
I looked at .designer.cs, which contains executable code. Are you sure that that WinForm ProperGrid extracts the control-properties information from these executable shource codes? I thought ProperGrid was reading information from XML.
Under .net there isn't any designer specific format, the code itself is the design. The property grid simply reads / modifies the code in the .designer.vb file. If you make a change to the code, you should see the change reflected in the designer / property grid.
Re: The storage format of PropertyGrid
The properties themselves are read from the type of the control and how they are configured is determined in some respects by attributes on those properties, e.g. the Category attribute determines the section the property is displayed in. The property values come from the object, either the default value or the specific value in the designer code, as specified above. That's it, that's all.
Re: The storage format of PropertyGrid
Quote:
Originally Posted by
PlausiblyDamp
Under .net there isn't any designer specific format, the code itself is the design. The property grid simply reads / modifies the code in the .designer.vb file. If you make a change to the code, you should see the change reflected in the designer / property grid.
"The code itself is the design" is a great idea. Thank you, PlausiblyDamp.
Re: The storage format of PropertyGrid
Quote:
Originally Posted by
jmcilhinney
The properties themselves are read from the type of the control and how they are configured is determined in some respects by attributes on those properties, e.g. the Category attribute determines the section the property is displayed in. The property values come from the object, either the default value or the specific value in the designer code, as specified above. That's it, that's all.
Got it, thank you, jmcilhinney.