Home > Net >  How to obtain the current window of the xy coordinates biggest winform GDI?
How to obtain the current window of the xy coordinates biggest winform GDI?

Time:09-26

To map the proportion with the window size change, have to get the biggest coordinates x and y? How to get?

CodePudding user response:

Enclosing ClientRectangle, or enclosing ClientSize

https://docs.microsoft.com/zh-cn/dotnet/api/system.windows.forms.control.clientrectangle

CodePudding user response:

Um participant raphics. Drawimage (img, new rectangle (0, 0, me. Width, me. Height))
Drawing the image so you as the change of the form and change, if it is drawn in the form, can also directly with me. Clientrectangle,

I use vb.net if is c #, enclosing clientreactangle is ok
  • Related