.Net 2.0 Web UserControl EditorAttribute Problem

H

HawkEye

Hi.

I'm trying to expose the DropDownList ListItemCollection property at design
time on a Web user control, using the following code.


<Category("Apearance"), Browsable(True), _

EditorAttribute(GetType(System.Web.UI.Design.WebControls.ListItemsCollectionEditor), _
GetType(UITypeEditor))> _
Public ReadOnly Property ListItems() As ListItemCollection
Get
Return Me.ddlControl1.Items
End Get
End Property

The problem is that the ListItems property is being displayed in
properties; but the editor button is not displaying. As far as i can see this
is virtualy identical to the example on MSDN.

i'm using the following assemblies -

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

Please can anybody help.

Thanks
Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top