0

i am working on visual studio 2010.
i created my master form windows state is Maximized my system resolution is 1366X768 ,,in one button click i am calling 5 forms together into my master form.. but in my system everything getting correct..

enter image description here

but i installed the same application in my client system,,that system resolution is 1024X768 but here my alignment is not getting proper..now my image is getting like this:enter image description here

so how i can fit my windows form application in all resolution,,if any one know please help me to find out

user3106114
  • 183
  • 2
  • 11
  • 31

1 Answers1

1

You basically have two options:

1) Follow Microsoft's instruction on implementing auotscaling for Windows forms applications. (See http://msdn.microsoft.com/en-us/library/ms229605(v=vs.110).aspx)

2) Write your own code to scale the form based on resolution.

============================

Other factors to keep in mind.

  • If you app is translatable that can affect scaling
  • A user changing the Windows default font size can have the same affect.

Hope this helps.

Kevin
  • 2,566
  • 1
  • 11
  • 12
  • By writing your own code I mean handling the resize event on the main form. Say you always want the left-most panel to be 20% of the size of the main panel. When the resize event is call you could say formLeft.Width = formMain.Width * .20. You would also have to resize all the child controls. – Kevin Apr 05 '14 at 22:52
  • See this article for more of an explanation: [How to auto-resize](http://stackoverflow.com/questions/4248637/how-to-auto-resize-and-adjust-form-controls-with-change-in-resolution) – Kevin Apr 05 '14 at 22:58