from MSDN
http://msdn.microsoft.com/en-us/library/system.windows.forms.design.filenameeditor(VS.80).aspx[
^]
public:
[EditorAttribute(System::ComponentModel::Design::FileNameEditor::typeid,
System::Drawing::Design::UITypeEditor::typeid)]
property String^ testFilename
{
String^ get()
{
return filename;
}
void set( String^ value )
{
filename = value;
}
}
private:
String^ filename;
I want see openFileDialog when propertyGrid's stringItem click event. :-)
but MSDN sample code is do not work.
compiler said "can not find FileNameEditor Class or NameSpace"
Plz help me.
used C++ / CLI, .NET 2.0, VS2008
________________________________________________________________________
how can I check DLL file?
I'm changed my DLL file But
this file failed too
More Question~
in MSDN's sample code
VB : GetType(System.Windows.Forms.Design.FileNameEditor)
C# : typeof(System.Windows.Forms.Design.FileNameEditor)
C++: System::ComponentModel::Design::CollectionEditor::typeid
dose not used same class (vb, c#: FileNameEditor, c++: CollectionEditor)
Is it right??
________________________________________________________________________
Thank you!! I find it!!