I am using the PropertyGrid control. I have altered the BrowsableAttributes
property to a custom attribute. When I do this, expandable properties will
no longer expand in the PropertyGrid. For example, I have a public font
poperty. I can call up the font dialog from the PropertyGrid, but I can't
expand the property to see the font members. If I don't change the
BrowsableAttributes the PropertyGrid behaves normally.

Any ideas?

--
Howard Swope
Software Engineer
Spitz, Inc [http://www.spitzinc.com]

RE: Property Grid Stops Expanding Expandable Properties by lionshi

lionshi
Wed Jul 16 05:53:27 CDT 2003

Hello Howard ,

The customized attributes may afftects the functions of PropertyGrid
control. I suggest you remove the customized attributes one by one to
narrow down to the problem attribute. At least it should work when the
collection is empty:

PropertyGrid p = new PropertyGrid();
this.Controls.Add(p);
p.BrowsableAttributes = null;
p.Height = 200;
p.SelectedObject = this;
p.Show();

Hope this helps.

Best regards,

Lion Shi [MSFT]
MCSE, MCSD
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2003 Microsoft Corporation. All rights
reserved.
--------------------
> From: "Howard Swope" <hswope@spitzinc.com>
> Subject: Property Grid Stops Expanding Expandable Properties
> Date: Mon, 14 Jul 2003 15:56:23 -0400
> Lines: 15
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> Message-ID: <#M8k1HkSDHA.1252@TK2MSFTNGP10.phx.gbl>
> Newsgroups: microsoft.public.dotnet.framework.windowsforms
> NNTP-Posting-Host: 2.host.spitzinc.com 12.32.192.2
> Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
> Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:48285
> X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
>
> I am using the PropertyGrid control. I have altered the
BrowsableAttributes
> property to a custom attribute. When I do this, expandable properties will
> no longer expand in the PropertyGrid. For example, I have a public font
> poperty. I can call up the font dialog from the PropertyGrid, but I can't
> expand the property to see the font members. If I don't change the
> BrowsableAttributes the PropertyGrid behaves normally.
>
> Any ideas?
>
> --
> Howard Swope
> Software Engineer
> Spitz, Inc [http://www.spitzinc.com]
>
>
>