|
-
Jun 30th, 2023, 08:01 AM
#1
Thread Starter
Frenzied Member
-
Jun 30th, 2023, 08:09 AM
#2
Re: The storage format of PropertyGrid
 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...
-
Jun 30th, 2023, 08:20 AM
#3
Re: The storage format of PropertyGrid
IT comes from the .designer.vb file...
-tg
-
Jun 30th, 2023, 08:59 AM
#4
Thread Starter
Frenzied Member
Re: The storage format of PropertyGrid
 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.
 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.
Last edited by SearchingDataOnly; Jun 30th, 2023 at 09:10 AM.
-
Jun 30th, 2023, 10:29 AM
#5
Re: The storage format of PropertyGrid
 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.
-
Jun 30th, 2023, 11:13 AM
#6
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.
-
Jun 30th, 2023, 07:49 PM
#7
Thread Starter
Frenzied Member
Re: The storage format of PropertyGrid
 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.
-
Jun 30th, 2023, 07:53 PM
#8
Thread Starter
Frenzied Member
Re: The storage format of PropertyGrid
 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|