this is different question from last one. in that question I asked how to fit bigger form in different screen and the answer were helpful but did not solve the issue.
How do I fit/re-size Windows Form to any screen resolution?
I developed an application using windows forms C# under screen resolution 1366x778
and when I run my application in different screen size (different resolution) it missed some parts because the form appeared too big for the screen.
I partly solved this issued using Anchor / Docks and made the form to maximize but now the new problem is: the controls which on the form do not re-size themselves to fit the screen and they overlap each other instead.
My question is: is there any equation/function or any idea to make all the controls in the Form to re-size themselves according to the screen resolution? something like for example: lets say form1
has button1
and size of button1
is 100x100
and the new screen resolution is 1280x960
, can we re-size button1
based on the resolution?
Please help . Thank you.