all groups > asp.net webcontrols > october 2003 >
You're in the

asp.net webcontrols

group:

Help! How do I hide or override property/category display under webcontrols?


Re: Help! How do I hide or override property/category display under webcontrols? HD
10/31/2003 7:45:21 AM
asp.net webcontrols:
if you have too many properties to over ride and a few to use, i would
suggest inheriting from control instead of webcontrol.
Which means you dont get any and you just start adding whatever you need.

[quoted text, click to view]

Help! How do I hide or override property/category display under webcontrols? lavey
10/31/2003 10:25:16 AM
greetings everyone,

I have search throughout the net but still no luck... ok what I am facing
here is that...
how do I hide or override property/category display under webcontrols?

do I have to hardcode it myself just like the following codes? cos but
default, there's lot of properties to override.
and also.. its there a direct method to hide certain category?
[Bindable(true),Category("Appearance"),Browsable(false)]
public override System.Drawing.Color BorderColor
{
get
{
return base.BorderColor;
}
set
{
base.BorderColor = value;
}
}


please advise,
Nigil

Re: Help! How do I hide or override property/category display under webcontrols? Nigil LaVey
10/31/2003 7:14:19 PM
Hi HD,

Thanks man.. u saved me lots of codings.. thanks
one more thing... can I set the order of the property?
say like

TestColor
BorderColor

instead of
BorderColor
TestColor

cos by default it just order by Alphabetical

public override System.Drawing.Color BorderColor
{
get
{
return base.BorderColor;
}
set
{
base.BorderColor = value;
}
}

public override System.Drawing.Color TestColor
{
get
{
return base.BorderColor;
}
set
{
base.BorderColor = value;
}
}



regards,
Nigil


[quoted text, click to view]

Re: Help! How do I hide or override property/category display under webcontrols? HD
10/31/2003 7:48:56 PM
hello Nigil,

Not sure about that. You could try binding them to say a category. That
would help position 'em in group but they will still be show in A->Z format
in property box. Dont think there's a parameter in the Bindable attribute
construct. Sorry bout that

Regards,

HD
[quoted text, click to view]

AddThis Social Bookmark Button