• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 999
  • Last Modified:

Creating a new EditorAttribute?

Hi,

I'm having trouble creating an EditorAttribute to be used on a PropertyDescriptor. Basically I'm creating a dynamic class from an xml file for editing values via a property grid. Everything is working fine, and I'm able to add other attributes I need, but I run into a wall trying to add an EditorAttribute.

This line of code: new EditorAttribute(GetType(FolderNameEditor),GetType(UITypeEditor));

Is giving me a 'class name not valid at this point' for both 'FolderNameEditor' and 'UITypeEditor'.

Any thoughts? I can provide more code if necessary,

b
0
WillyCornbread
Asked:
WillyCornbread
1 Solution
 
ozymandiasCommented:
How about :

new EditorAttribute(typeof(FolderNameEditor),typeof(UITypeEditor));

?
0
 
WillyCornbreadAuthor Commented:
lol, Thanks.

I swear I tried that to no avail, but that is the ticket. Thanks for the quick response, some easy point for you...

b
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now