Reset on Image based property

Discussion in 'ASP .Net Building Controls' started by JezB, Dec 14, 2005.

  1. JezB

    JezB Guest

    I've extended (subclassed) a Button control and given it two new Image
    properties (for mouse over and mouse click images). These work fine but I've
    noticed that once I set one of my two new Images in forms designer, I cannot
    clear it since the Reset option is disabled on the right-click menu in the
    property editor. How can I ensure this option is enabled?
     
    JezB, Dec 14, 2005
    #1
    1. Advertising

  2. JezB

    Tim Wilson Guest

    You could use the DefaultValueAttribute.
    http://msdn.microsoft.com/library/d...onentmodeldefaultvalueattributeclasstopic.asp

    --
    Tim Wilson
    ..NET Compact Framework MVP

    "JezB" <> wrote in message
    news:...
    > I've extended (subclassed) a Button control and given it two new Image
    > properties (for mouse over and mouse click images). These work fine but

    I've
    > noticed that once I set one of my two new Images in forms designer, I

    cannot
    > clear it since the Reset option is disabled on the right-click menu in the
    > property editor. How can I ensure this option is enabled?
    >
    >
     
    Tim Wilson, Dec 14, 2005
    #2
    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. PW

    INPUT IMAGE - RESET ?

    PW, Sep 3, 2004, in forum: HTML
    Replies:
    28
    Views:
    8,117
  2. Reiner Wagner

    RESET button as an image

    Reiner Wagner, Jul 6, 2005, in forum: HTML
    Replies:
    3
    Views:
    13,038
    Vladdy
    Jul 6, 2005
  3. Radu
    Replies:
    2
    Views:
    1,357
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Jan 25, 2007
  4. jim

    Reset on Style Property does not change Design View

    jim, Dec 2, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    142
  5. jim
    Replies:
    0
    Views:
    161
Loading...

Share This Page