Solved

Creating a new EditorAttribute?

Posted on 2006-11-08
2
971 Views
Last Modified: 2012-05-05
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
Comment
Question by:WillyCornbread
2 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 500 total points
ID: 17900180
How about :

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

?
0
 

Author Comment

by:WillyCornbread
ID: 17900205
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

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question