c# - resize button controls on windows form to fixed size as per screen resolution -


i have specific requirement -in size of buttons on form should remain of particular size @ different screen resolution.

enter image description here

example seen in above form, have buttons "on" , "off" & size of both buttons 2 cms particular resolution.

now need code re-sizes buttons 2 cms different resolution or size of button should remain same @ different resolution.

thanks

the question seems "how make windows form resolution independent?". btw, there lot of examples given in internet make form resolution independent. unfortunately .net doesn't provide kind of facility make application common resolutions. but, there no 1 correct way.

i have posted logic this. can check out.

scale windows forms window

you need add code windows form.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -