Solved

Creating a new EditorAttribute?

Posted on 2006-11-08
2
964 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
Comment Utility
How about :

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

?
0
 

Author Comment

by:WillyCornbread
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now