.Net 2.0 Web UserControl EditorAttribute Problem

Discussion in 'ASP .Net Web Controls' started by HawkEye, Jun 21, 2006.

  1. HawkEye

    HawkEye Guest

    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
    HawkEye, Jun 21, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tim Pacl

    EditorAttribute for Style Editor

    Tim Pacl, Jul 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    639
    Victor Garcia Aprea [MVP]
    Jul 12, 2003
  2. Replies:
    0
    Views:
    463
  3. Tim Pacl

    EditorAttribute for Style Editor

    Tim Pacl, Jul 11, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    162
    John Eikanger [MSFT]
    Jul 17, 2003
  4. Kan Grewal

    Web Usercontrol in a Web Usercontrol not displaying...

    Kan Grewal, Jul 6, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    112
    Kan Grewal
    Jul 7, 2004
  5. Mark van Bree

    Postback problem with usercontrol in usercontrol

    Mark van Bree, May 30, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    155
Loading...

Share This Page