Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Creating a new EditorAttribute?

Posted on 2006-11-08
2
Medium Priority
?
980 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

604 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