Link to home
Start Free TrialLog in
Avatar of AlexFM
AlexFM

asked on

Count form size from client size

I need to count window size, having size of client area. In Win32 programming this is done using AdjustWindowRectEx function. What is .NET way to do this?
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

this.ClientRectangle.Size
this.Size
OR
this.ClientSize
is what you are lookin for
?
Avatar of AlexFM
AlexFM

ASKER

Suppose I want to create window with client size 200*300. What window width and height should I use - it should be something like 210*320. I need .NET function (if exists), which allows to count this.
ASKER CERTIFIED SOLUTION
Avatar of vo1d
vo1d
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlexFM

ASKER

Great. I didn't think that this is so simple.
i wasnt aat seat... i wonder alexFm asked this:)