Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...