Hi guys,
I have a question here that bothers me for a long time.
I'm now setting the form's WindowState to Maximized which is 1400 by 1050 based my monitor's resolution. And in my program all the buttons location and size on the form are input from an Excel file edited by user.
The problem is once the resolution of monitor is different from 1400 by 1050, the form can't be totoally shown on the screen. Because the buttons' location are saved in the Excel file which doesn't change according to the form's maximized size. Say, if next time the screen resolution is 800 by 600, the button on (1000, 800) will not be shown on the form.
Is there any way to fix the maximized size of the form in spite of the screen's resolution? Say, if I set(1400, 1050) to be the bottom-right coordinate, it will not change and each button will always keep its right location proportional to the form.
Any help will be very appriciated. Thank you!
I have a question here that bothers me for a long time.
I'm now setting the form's WindowState to Maximized which is 1400 by 1050 based my monitor's resolution. And in my program all the buttons location and size on the form are input from an Excel file edited by user.
The problem is once the resolution of monitor is different from 1400 by 1050, the form can't be totoally shown on the screen. Because the buttons' location are saved in the Excel file which doesn't change according to the form's maximized size. Say, if next time the screen resolution is 800 by 600, the button on (1000, 800) will not be shown on the form.
Is there any way to fix the maximized size of the form in spite of the screen's resolution? Say, if I set(1400, 1050) to be the bottom-right coordinate, it will not change and each button will always keep its right location proportional to the form.
Any help will be very appriciated. Thank you!