SkinID Property in Custom Control

Posted on 2007-07-19
Last Modified: 2013-11-07
I am trying to create a custom server control that inherits from Web.UI.Control (not WebControl).  SkinID is available in the base object, however it is not exposed in the custom control.  I've even tried exposing the property by just overriding the property:

Public Overrides Property SkinID() As String
   Return MyBase.SkinID
 End Get
 Set(ByVal value As String)
   MyBase.SkinID = value
 End Set
End Property

But this still does not expose the property.  How do get this property to appear in the designer and even opens the dialog too like?
Question by:Webtologist
    LVL 7

    Accepted Solution

    If you add the Browsable option to your property that should work.

    <Browsable(True)> _
    Public Overrides Property SkinID() As String

    If you aren't already doing it you will have to import the System.ComponenModel Namespace.

    LVL 1

    Author Comment

    Thank you, that works fine.  

    Now I get this error:

    The SkinID value is not defined the theme or stylesheet theme

    I do have a theme assigned to the page and I can assign it to another standard web control.
    LVL 7

    Expert Comment


    Usually you should be opening up another question for this as you are depriving someone of points...

    But you need to create a new Skin for your new custom control because the tags won't match anymore.

    ie your standard control is for example

    your new one will be <cc:CustomControl

    So you can't use the same Skin for a CustomControl that you do for a Standard Control.



    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 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

    17 Experts available now in Live!

    Get 1:1 Help Now