Hi,
I am working with windows form. When i am trying open the created winform application in 1024x768 resolution, it is not fitting to the screen. To view the full screen i need to move .Is there any way to fit the screen in all resolution. Any Simple fixes ?
Thanks
Sunil Babu M
Loading

Joginder BangerRank #360 · 7K reputationPosted Nov 24, 2014, 9:33 AM EST
it is possible first of all get a current monitor size like this type
after that apply your form.
Sunil Babu M184 reputationPosted Nov 24, 2014, 6:26 PM EST
Thanks for your reply. I am able set the window height ans width depends on the widows resolution, using the code you mentioned above.But the issue is the content in side the window is not fit in the screen when we change the height and with. How we can solve this issue ?
Thanks
Sunil Babu M
Selva GanapathyRank #560 · 4.3K reputationPosted Nov 24, 2014, 6:51 PM EST
Hi Sunil Babu,
Please check the Form's "AutoScaleMode" property if it is "Font" then set as None. as below
//
// Form1
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
Regards,
Selva Ganapathy K
Sunil Babu M184 reputationPosted Nov 25, 2014, 3:57 AM EST
Problem still exists. Its adjusting the height and width, but content inside windows is not scaling.
Thanks
Sunil Babu M