• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

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?
0
AlexFM
Asked:
AlexFM
  • 3
  • 2
1 Solution
 
Fahad MukhtarDistinguished EngineerCommented:
this.ClientRectangle.Size
this.Size
0
 
Fahad MukhtarDistinguished EngineerCommented:
OR
this.ClientSize
is what you are lookin for
?
0
 
AlexFMAuthor Commented:
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.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
vo1dCommented:
do this:
this.ClientSize = new Size(200, 300);
0
 
AlexFMAuthor Commented:
Great. I didn't think that this is so simple.
0
 
Fahad MukhtarDistinguished EngineerCommented:
i wasnt aat seat... i wonder alexFm asked this:)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now