Re: Obtain default curtom control size by Claes
Claes
Tue Jan 04 07:40:09 CST 2005
Not sure I understand your question
The object (control) doesn't exist until you create it
(using new). And if it doesn't exist how can it have
a height and width?
Invoking a property with reflection requires an
object, so how would you do that if you don't have
an object?
/claes
"MuZZy" <leyandrew@yahoo.com> wrote in message
news:8PSdnRMiKLA27ETcRVn-vw@rcn.net...
> Hi,
>
> I just wonder if someone can help me:
> I've built a custom UserControl which i use in several apps.
> Is there a way to obtain it's size (height, width) without actually
creating it?
>
> Do i need to use reflection to invoke Size property or is there an easier
way?
>
> Thank you,
> Andrey