Screen Object Changes in Visual Basic .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why an application developed in VB.Net on a screen with a resolution 12
TwipsPerPixelX and 12 TwipsPerPixelY will change the size (in pixels) of the
controls when it runs on a computer with a 15 TwipsPerPixelX screen
resolution. I mean, I have an application with a “Form†with 900 pixels width
in a 12 TwipsPerPixelX screen and when I run it on a computer with a 15
TwipsPerPixelX screen resolution, same “Form†has less the 850 pixels. I need
all the pixels. How can I manage this, because it’s a big error.
 
You should use Screen.twipsperpixelX and Screen.twipsperpixelY to adjust the
form size according to the screen TwipsPerPixel with your original
dimensions by Pixel
 
Ge_RO said:
Why an application developed in VB.Net on a screen with a resolution 12
TwipsPerPixelX and 12 TwipsPerPixelY will change the size (in pixels) of the
controls when it runs on a computer with a 15 TwipsPerPixelX screen
resolution. I mean, I have an application with a bFormb with 900 pixels width
in a 12 TwipsPerPixelX screen and when I run it on a computer with a 15
TwipsPerPixelX screen resolution, same bFormb has less the 850 pixels. I need
all the pixels. How can I manage this, because itbs a big error.


See if setting the form's MinWidth property will help....

LFS
 
I don't see a TwipsPerPIxel property or method in the .Net Screen Class. Am
I missing something?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top