I am developping a winForm application whitch works on several screen resolutions.
how to adapt my application to the screen resolution
how to adapt my application to the screen resolution
thanks for help
best regard
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Jul 9, 2009, 4:30 PM
Niradhip ChakrabortyPosted Jul 9, 2009, 3:33 AM
private void dynamicSizeForm_Load(System.Object sender, System.EventArgse)
{
Screen scr = Screen.PrimaryScreen;
this.Left = (scr.WorkingArea.Width – this.Width) / 2;
this.Top = (scr.WorkingArea.Height – this.Height) / 2;
}
You can use above code to fix the location and size of windows form when it loads
Screen.PrimaryScreen
Returns a Rectangle structure that represents the bounds
of the display area for the current screen, minus the space
taken for the taskbar and any other docked windows.
Posted Jul 9, 2009, 2:42 AM
Niradhip ChakrabortyPosted Jul 8, 2009, 7:24 AM
Posted Jul 8, 2009, 7:10 AM
Niradhip ChakrabortyPosted Jul 8, 2009, 6:42 AM