Obtain default curtom control size

  • Thread starter Thread starter MuZZy
  • Start date Start date
M

MuZZy

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
 
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
 
Back
Top