Welcome Guest Search | Active Topics | Members | Log In | Register

Setting a dialog size in pixels at runtime. Options · View
spforeman@googlemail.com
Posted: Tuesday, May 06, 2008 12:44:48 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 06/05/2008 00:44:48
Date: Tue, 6 May 2008 07:44:48 -0700 (PDT)

Hi All,

I'm sure the solution to this problem is really simple, however I just
can't seem to figure it out!

All I want to do is create a dialog at design time that is 640x480
pixels big. I have an application that must fit onto a VGA display
and so want to make the dialog 640x480 at design time.

I could make my screen resolution 640x480 but this would be a pain
when using Visual Studio to edit the dialog.

I've noticed in the bottom right of the VS 2008 status bar there are
two co-ordinates. The first seems to show the top left of the dialog
or control (so for the dialog it is always 0,0). The second shows the
width and height, but obviously not in pixels, can anyone tell me what
these units are and how to convert them to pixels?

Thanks in advance!
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.029 seconds.