Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

We have a smartclient application in C#. We don't know the clients resolution or dpi.

 

I know it is possible to detect this.

But then we want to adapt or forms and fonts to that type of screen.

 

 

Do we have to create a piece of code for each combination (resolution/dpi) to adapt font and controls (hight/width)?

Or is there something automatically that can do this for us.

Ex. we wrote all forms and they are very nice on a screen with a dpi=96 and pixels 1024/768. But when we run the app. on a screen with other setting it is like hell.

So, I would before showing a form that we detect the settings and then adapt our whole app. forms for this screen settings.

 

Maybe build one form that consits of a panel. Call it mainpanel.cs.

And then all forms hire of that mainpanel. ....

 

I don't know where to start with this problem.

Thanks,

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...