I am having issues publishing a WinForms application to other computers. I’ve used Visual Studio 2010 to design and program the application and when I send the EXE or the OneClick installer to another computer and try running it there, it runs fine however it would seem the resolution or something is off. PictureBoxes are overhanging the edge, some controls cutoff by the form window limits. I obviously did not put those controls there like that. When I run the application on my computer, the controls are all the right size/where they are supposed to be.
The question is, how do I configure the published EXE to use the same resolution I’ve coded it in or somehow accommodate for the different screen resolutions that the application may be run on?
From your requirements, you need to build a “resolution independent/adaptable” front-end.
Here are some options you could use to re-design your forms :
Layout controls like TableLayoutPanel control and FlowLayoutPanel control
Reference
http://forums.codeguru.com/showthread.php?490012-How-to-make-a-Resolution-Independent-Application
http://vbcity.com/forums/t/88845.aspx
http://www.andreavb.com/forum/viewtopic_5501.html
Think of using the AutoScaleMode enumeration
Reference
http://msdn.microsoft.com/en-us/library/system.windows.forms.autoscalemode.aspx
http://www.codeproject.com/Questions/245199/Creating-resolution-independent-applications-in-VB
Heck, its high time for you invest in WPF
Reference
http://msdn.microsoft.com/en-us//library/ms754130.aspx