Size in Form class

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

I use the disassemble in Red Gate's .NET Reflector.

When I use the documentation for the Form class there is a property called
Size but
when I look at the Form class using disassemble in Red Gate's .NET Reflector
I can't find one.

Can anyone explain this to me.

//Tony
 
Tony Johansson said:
I use the disassemble in Red Gate's .NET Reflector.

When I use the documentation for the Form class there is a property called
Size but
when I look at the Form class using disassemble in Red Gate's .NET
Reflector I can't find one.

Can anyone explain this to me.

Form inherits from Control. Look at the parent class to find any
properties that are not defined in Form itself.
 
Tony Johansson said:
Hello!

I use the disassemble in Red Gate's .NET Reflector.

When I use the documentation for the Form class there is a property called
Size but
when I look at the Form class using disassemble in Red Gate's .NET Reflector
I can't find one.

Can anyone explain this to me.

//Tony


.

Size is an inherited property from Control, and not a direct property of the
Form class.

Mike
 
When I use the documentation for the Form class there is a property
called Size but
when I look at the Form class using disassemble in Red Gate's .NET
Reflector I can't find one.

Some things are inherited from parent classes. In Reflector, open the base
class hierarchy and start walking up the hierarchy. When you get here
(http://snurl.com/snn2e), you will see the Size property.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Tony Johansson said:
Hello!

I use the disassemble in Red Gate's .NET Reflector.

When I use the documentation for the Form class there is a property called
Size but
when I look at the Form class using disassemble in Red Gate's .NET
Reflector I can't find one.

Can anyone explain this to me.

//Tony

In addition to the other replies:

You can show "inherited members" in Red Gate's .Net Reflector by going to
View->Options and selecting Browser then checking the box labeled "Show
inherited members". Enabling this option will show all members of a class,
inherited or not.

HTH,
Mythran
 
Back
Top