how do you get the URL editor to show up for a custom web control (dll) in VB.Net?

Hi all,
I'm trying to build a lot of custom web controls that use URLs as parameters, however, I have no idea how to get the URL editor to show up in the properties box for a URL string in VB.NET.

In C#, you can put metadata in before the function:
[Browsable(true),Category("Behavior"),Editor(typeof(System.Web.UI.Design.UrlEditor), typeof(UITypeEditor))]

I need to find the equivalent for the "Editor..." portion of the string above in VB.Net because there is no such thing as "System.Web.UI.Design.UrlEditor" in VB.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This works fine for me:

<Bindable(True), Category("Behavior"), Editor(GetType(UrlEditor), GetType(UITypeEditor)), Description("The Url to redirect")> _

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
simplyamazingAuthor Commented:
I tried that, but UrlEditor and UITypeEditor are "undefined"
Is there another reference I need to make?

I'm using:
Imports System.ComponentModel
Imports System.Web.UI

You need to imports these 2 below:

Imports System.Web.UI.Design

Imports System.Drawing.Design

Also make sure to add to your references:

Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

simplyamazingAuthor Commented:
OK,  I have the following references for the project:


Imports System.ComponentModel
Imports System.Web.UI
Imports System.Drawing.Design
Imports System.Web.UI.Design

but it cant find the Design namespace for the last line (System.Web.UI.Design)

I think I am missing another reference
Hum add the following references to your project:

simplyamazingAuthor Commented:
It was System.Design that turned out to be missing.  

I tested every system reference in the list until the blue squiggly line disappeared from System.Web.UI.Design

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.