Why isn't possible set Height value for windows form greater than 1044. When I write bigger value is automatically repaired on 1044.
Thank's for any idea.
Windows Forms General
Why isn't possible set Height value for windows form greater than 1044. When I write bigger value is automatically repaired on 1044.
Thank's for any idea.
Based on the size you specify the adjusted window size will be calculated with a p/invoke call to AdjustWindowRectEx. The height size calculated depends on factor like is there a menu bar, the border size, is there a scrollbar and so on. It also depends on your working area.
I tryied create new Windows Application project. In a Form1 a try set Size.Height to 1200. It isn't possible because value is repaired to 1044. I need long form and need design it. But it isn't possible and I don't know why.
In a new project I don't specify any windows size.
May you set Height bigger than 1044 in a new Windows Application
Yes, you're right. I must read it twice. It depends on screen resolution !
Experimentally acquired values:
resolution : maximum Height
1024x768:780
1280x1024:1144
So question remain: how to make longer form
Yes I thought that it also depends on the screen solution but I guess that if you read values heigher than the height I was wrong. Maybe you could override the form's WndProc and capture the WM_NCCALCSIZE message and somehow change the bounds of the form but I don't know if this will work.
Thank for you replies. In this time i working on another solution with tab control. (Because I don't have time experiment now.)
Initialy I test long "form" in MFC and there wasn't problem. But application is now programming in c#. Form height restriction surprise me. That's all.