Jump to content

C# VS2010

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Jrb

Jrb

    Learning Programmer

  • Members
  • PipPipPip
  • 49 posts
Hi everyone.

I recently made a desktop widget in C# and WPF. I used Visual Studio 2010 to publish the app. Here's the problem.

On my screen, everything looks perfect fine. All the textboxes, labels, and pictures line up just fine. However, whenever I send the app to someone else who is on a different monitor resolution than mine, everything appears to be misplaced or overlapping. How can I fix this?

#2
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
As far as I know WPF applications adapt their selves to the current resolution and DPI.

When you edit it in Visual Studio it might look good, but I think you need to dock the controls properly so that they stay in the right place regardless of the resolution.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#3
Jrb

Jrb

    Learning Programmer

  • Members
  • PipPipPip
  • 49 posts
Thanks Davide. Do you know any tutorials on how to dock the components/controls so they stay put on different resolutions?

#4
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
Well, 'dock' is not the correct term for it, but I think you can select the items, go to the properties window and check 'Snap to device pixels', it might work.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users