all groups > dotnet windows forms designtime > september 2004 >
You're in the

dotnet windows forms designtime

group:

Visible Property returns wrong value in Designer


Re: Visible Property returns wrong value in Designer Frank Hileman
9/2/2004 1:58:13 PM
dotnet windows forms designtime: TypeDescriptor.GetProperties(control)["Visible"].GetValue(control);

Regards,
Frank Hileman

check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor

[quoted text, click to view]

Visible Property returns wrong value in Designer micha NO[at]SPAM nospam.com
9/2/2004 6:32:00 PM
Hello

I need to get the Visible property of a Control at Designtime.

I have wrote a Designer by Inheriting a
"Windows.Forms.Design.DocumentDesigner".

In side this Class I loop throw the Child Controls of the Form.

But the Visible Attrbute always return "true" and not the Value set in the
Property Grid.



I read that this is done via Metadata Filtering to avoid taht the Control is
hidden

at the Designer if you set it to "False"

But how can I get the real value (the Value from the Propertygrid) ???



Thanx for any Idea :-)





Re: Visible Property returns wrong value in Designer micha NO[at]SPAM nospam.com
9/3/2004 9:59:57 AM
Thanx, that's it !!

[quoted text, click to view]

Cool Thing !

"Frank Hileman" <frankhil@no.spamming.prodigesoftware.com> schrieb im
Newsbeitrag news:%23aP9R%23SkEHA.1136@tk2msftngp13.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button