Methinks you forgot to include the Screen.TwipsPerPixelX/Y in the demo. :-)
--
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"In VB we had to code our own bugs. In dotnet we can inherit them."
"Auric__" <no*********@email.address> wrote in message
news:6d********************************@4ax.com...
: On Wed, 19 May 2004 22:00:02 +1000, dreamer wrote:
:
: >I need to be able to detect different screen resolutions and then
: >resize my applications forms, objects, fonts etc, to suit.
: >Any ideas how to go about it?
: >I use VB 5.
: >Many thanks in advance.
:
: Screen.Width and Screen.Height tell you the resolution.
:
: Private Sub Form_Load()
: Me.Height = Screen.Height / 3 'or whatever number
: Me.Width = Screen.Width / 3 'you want to use
: End Sub
:
: --
: auric underscore underscore at hotmail dot com
: *****
: [blank stare]