VJS
VJS

Reputation: 1151

c# window application layout problem

Creating an application using C# 3.0. In my desktop system the application form layout is perfect. But the same application opens in my laptop, the form layout alignment is different.

How do i solve this problem.?

Upvotes: 1

Views: 361

Answers (2)

Joanne C
Joanne C

Reputation: 1115

Are you using something like the FlowLayoutPanel? It will change the layout of it's children dynamically based on the real estate that it is given.

Upvotes: 0

C-Pound Guru
C-Pound Guru

Reputation: 16368

Probably different dpi settings on your laptop than from your desktop. To prevent the form from looking strange at different settings, you might want to consider using a TableLayoutPanel. Using the auto-sizing capabilities will help keep things looking 'normal' at any dpi setting.

Here is a decent blog post on using the TableLayoutPanel.

Upvotes: 2

Related Questions