Click here to Skip to main content
15,889,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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!!
Posted
Updated 3-Jan-10 19:01pm
v6

Most likely reason is that you've not included the right assembly in your project for this stuff to be available.

"Assembly: System.Design (in system.design.dll) "
 
Share this answer
 
Please edit your post, not add an 'answer' that's more questions. I can't see or quote your reply, now.

You add a reference to that dll to your project. If you don't know how, you should consider buying a book and reading it. Just right click on references, choose 'add reference' and find the one you need.
 
Share this answer
 
sorry <code><code><code><code>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900