excaliber Posted April 24, 2005 Posted April 24, 2005 I am attempting to add a browse button to this particular property (in the PropertyGrid). Ive found code on the net telling me to add in the EditorAttribute with FileNameEditor in it. Unfortunately, I am being told that "System.Windows.Forms.Design.FileNameEditor is not defined". Sure enough, it doesnt appear that FileNameEditor is part of the Design Namespace. Any help? Thanks <CategoryAttribute("Mesh"), _ EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), GetType(System.Drawing.Design.UITypeEditor)), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute(""), _ DesignOnly(False), _ DescriptionAttribute("Path to Normal Map")> _ Public Property NormalMap() As String Get Return _NormalMap End Get Set(ByVal Value As String) _NormalMap = Value End Set End Property Quote
Administrators PlausiblyDamp Posted April 24, 2005 Administrators Posted April 24, 2005 You will need to add a reference to System.Design.dll Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.