Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > manage properties in PropertiesWindow

Reply
Thread Tools

manage properties in PropertiesWindow

 
 
arg
Guest
Posts: n/a
 
      07-05-2004
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

 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      07-05-2004
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:CC2299DF-F14C-44A7-B147-...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Manage Styles" and "CSS Properties"? Asaf ASP .Net 1 11-26-2007 02:31 AM
How to dynamically manage the properties of an editpart in GEF? Jason Java 0 09-28-2006 05:13 AM
CompositeControls: ViewState properties w/ Mapped properties probl =?Utf-8?B?Q2hyaXN0b3BoZSBQZWlsbGV0?= ASP .Net 1 01-19-2006 09:19 AM
Making Custom Control Properties Visible in Visual Studio's Properties Palette Nathan Sokalski ASP .Net 0 10-17-2005 02:05 AM
Problems parsing when Properties.dtd.properties Kent Lichty Java 0 04-16-2004 03:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57