I am developing a custom control for my windows form application.
This control has a property named �/span> Bytes �/span> , which get the bytes from a file stored in resX File
In windows form application, the file reference in resX File is typed as bytes. So I just use that type as this property type.
For loading the file with less code, I just want to design a custom UITypeEditor for this property. I hope it would be running like the ImageEditor that the VisualStudio Default Used. When you select a project resource value, the code in Form.Designer.cs will like �/span> global::[ProjectName ].Properties.Resources.[ResourceName ] �/span> .
I use EnvDTE to get the project resX file path, and then use the ResXResourceReader to get the resource value I want. But the code in Form.Designer.cs is �/span> new bytes { byte )(31)),((byte )(11)), �/span> } �/span> . It is the value of resource, not the reference. It means I would refresh the property by hand for each control, when the resource update.
It �/span> s terrible! Could someone save me?