Hi Cadey,
According to my research, I know that the Resource Select Dialog is part of Visual Studio. Here is my test step.
1. Find a property that uses the Resource Select Dialog, e.g. The Image property of PictureBox control.
2. Use Reflector to view its source code. Below is its source code
[SRCategory("CatAppearance"), Localizable(true), Bindable(true), SRDescription("PictureBoxImageDescr")]
public Image Image
{
get
{
return this.image;
}
set
{
this.InstallNewImage(value, ImageInstallationType.DirectlySpecified);
}
}
There is no UITypeEditor declared at the header of the property.
3. Create a custom class called MyPictureBox. It inherited from System.Windows.Forms.PictureBox. Add a property called MyImage. Its type is also Image.
public class MyPictureBox : System.Windows.Forms.PictureBox
{
private Image myImage;
public Image MyImage
{
get { return myImage; }
set { myImage = value; }
}
}
4. When I edit the MyImage property of MyPictureBox in VS design. It shows Resource Select Dialog. But when I put a PropertyGrid control on the form and set its SelectedObject to MyPictureBox then run the application, you can see it popup Open File Dialog when trying to edit MyImage property.
Based on these test information, I think that Resource Selected Dialog is part of VS. Through I don’t find any document which can prove my analysis. But some words in the following document can indicate that.
http://msdn.microsoft.com/en-us/library/feh4ww6k.aspx
"The appropriate editor opens automatically when you create or open a resource."
"The Visual Studio resource editors do not support..."
If you have anything unclear, please feel free to tell me.
Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!