FileNameEditor not found?

excaliber

Newcomer
Joined
Dec 7, 2003
Messages
9
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


Visual Basic:
    <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
 
Back
Top