473,569 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Screen Object Changes in Visual Basic .NET

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.
Nov 21 '05 #1
3 4976
You should use Screen.twipsper pixelX and Screen.twipsper pixelY to adjust the
form size according to the screen TwipsPerPixel with your original
dimensions by Pixel

"Ge_RO" <Ge***@discussi ons.microsoft.c om> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
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.

Nov 21 '05 #2

"Ge_RO" <Ge***@discussi ons.microsoft.c om> wrote
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

Nov 21 '05 #3
I don't see a TwipsPerPIxel property or method in the .Net Screen Class. Am
I missing something?

"Bishoy Ghaly" wrote:
You should use Screen.twipsper pixelX and Screen.twipsper pixelY to adjust the
form size according to the screen TwipsPerPixel with your original
dimensions by Pixel

"Ge_RO" <Ge***@discussi ons.microsoft.c om> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
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.


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
321
by: wouter | last post by:
Dear experts, ** apologies for cross-posting ** I am trying to write a batch file in visual basic that identifies either "the-window-that-was-last-launched" or "the-window-having-the-focus" at a certain point in time, and that puts this window in a particular position on the screen, and holds it there.
0
1835
by: Tech | last post by:
In Visual Basic 6.0, the Locked property of a ComboBox control determined whether the text-box portion of the control could be edited. In Visual Basic ..NET, the Locked property prevents a control from being moved at design time. There is no direct equivalent for the Visual Basic 6.0 Locked property. What to do next Change the...
3
1827
by: rgb | last post by:
I've got Visual Studio 6.0 and I'm working on a Visual Basic applicaiton. There a couple parts that really require C. I've done C programming on a mainframe but nothing on a PC. So I'm trying to find an example of how to write a function that has object visibility in VB. The functionality I want to implement is quite straightforward. VB...
6
24583
by: Christian Blackburn | last post by:
Hi Gang, I can't seem to figure out how to create an object array in VB.NET 2003. In VB6 you would just select an object copy and paste it and that was that. I don't know why in the heck they decided to change that. I thought it was great. I assume a 2002 answer would work in 2003 as well. Can somebody tell me how to create an object...
3
4647
by: tigrrgrr42 | last post by:
I am working(vb.net03and05) with word documents stored in a sql db and I am currently bringing them from a byte array into a temp file to pop into word and make word do its thing as a com object. Is it possible to go straight from a byte array to document in word instead of a temp file? Also is there a way to change the save behaviour to...
1
2987
by: Lee | last post by:
Hi, How can i do this with C# and .NET 2 ? thanks in advance lee
7
2531
by: Arthur Dent | last post by:
Does anyone know where i can find a decently thorough list of the language changes in VB2008, such as the new If() function? All i can seem to find through search engines, most of the articles all talk about LINQ, with only cursory mention - at best - of any other new features. Thanks in advance, ... Arthur Dent.
4
1836
by: John | last post by:
Hi I have a winform with a panel on it. I am doing visual changes to the panel. Is there a way to suspend screen painting during these changes? If the whole form needs its display suspended then that would work for me too. How can I do this? Thanks Regards
4
6955
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I just gotta fix it. I need to make some calculations on the measurements and VB6 is my language. Yes, the system mouse will corrupt the...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7619
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.