manage properties in PropertiesWindow

Discussion in 'ASP .Net Building Controls' started by arg, Jul 5, 2004.

  1. arg

    arg Guest

    For example I have properties:

    b1 bool;
    b2 bool;

    [Browsable(true),Category("Test")]
    public bool B1
    {get{return b1;} set{b1 = value;}}

    [Browsable(true),Category("Test")]
    public bool B2
    {get{return b2;} set{b2 = value;}}

    How I can make B2 read-only or invisible in Properties Window
    when B1 value is seted true and vice versa when for B1 is seted false
     
    arg, Jul 5, 2004
    #1
    1. Advertising

  2. arg

    Teemu Keiski Guest

    Hi,

    I think this kind of feature would require having a custom editor for the
    properties in addition to putting that in effect in code (which you'd
    probably want to do in any case).

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist
    http://blogs.aspadvice.com/joteke



    "arg" <> wrote in message
    news:...
    > For example I have properties:
    >
    > b1 bool;
    > b2 bool;
    >
    > [Browsable(true),Category("Test")]
    > public bool B1
    > {get{return b1;} set{b1 = value;}}
    >
    > [Browsable(true),Category("Test")]
    > public bool B2
    > {get{return b2;} set{b2 = value;}}
    >
    > How I can make B2 read-only or invisible in Properties Window
    > when B1 value is seted true and vice versa when for B1 is seted false
    >
     
    Teemu Keiski, Jul 5, 2004
    #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. Nathan Sokalski
    Replies:
    0
    Views:
    955
    Nathan Sokalski
    Oct 17, 2005
  2. =?Utf-8?B?Q2hyaXN0b3BoZSBQZWlsbGV0?=

    CompositeControls: ViewState properties w/ Mapped properties probl

    =?Utf-8?B?Q2hyaXN0b3BoZSBQZWlsbGV0?=, Jan 19, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,161
    Steven Cheng[MSFT]
    Jan 19, 2006
  3. Kent Lichty
    Replies:
    0
    Views:
    854
    Kent Lichty
    Apr 16, 2004
  4. Jason
    Replies:
    0
    Views:
    339
    Jason
    Sep 28, 2006
  5. Asaf
    Replies:
    1
    Views:
    333
    Walter Wang [MSFT]
    Nov 26, 2007
Loading...

Share This Page