473,396 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

size of the screen of a program installed in another computer

I just finished a program in vb6.0 but when I tried to install it in another computer I wouldn't be able to see all the texts on the screen and somebody told me that there is a code you write in every single one of the forms that makes the size automatically sizeable to the screen of the computer you install it on thanks.
Jun 22 '07 #1
1 936
Killer42
8,435 Expert 8TB
It sounds as though "someone" oversimplified. :)

You can certainly detect the size of the screen - just retrieve the .Height and .Width properties of the the Screen object. However, what you do about it is really up to you.

I believe there are controls (generally referred to as an "elastic" control I think) which will help to automate the process of stretching and squashing things to adjust for screen size. (Try a search on TheScripts, I seem to recall the subject has come up once or twice). Otherwise you'd pretty much have to code whatever you want to happen.

You could do this in the Form_Load event, or possibly Form_Resize would be better (after all, the user could change resolution after your program starts).
Jun 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Salgoud Dell | last post by:
I have a VB6 application running on a French computer using Windows ME. The app doesn't work the same way as it does when running on an English Windows OS. The main issue I have, that I can't...
0
by: MrFez | last post by:
I have a simple .Net console program that sends an email message. The message can be specified as a string or a filename on the command line. Refer to the code below. The problem I am having is...
5
by: Jeff | last post by:
I wrote a simple VB.NET program that runs on a computer ONLY if I install Visual Studio 2003 on that computer. The computer already had .NET Framework 1.1 installed. If it is run on a computer...
9
by: bebelino | last post by:
How do I know the width and the height of the access screen? This is to place forms in the right place and covering the whole screen. thanks. -- bebelino
3
by: Simon East | last post by:
We recently upgraded from Windows 98 to Windows XP (clean install), but still required to edit Access 97 databases and so have kept Access 97. We installed Word XP and Excel XP, then Access 97. ...
2
by: Struggling Rod | last post by:
I have a new Windows XP computer with VB6/SP6 installed. I also have an old Windows 98SE computer with VB6/SP6 installed. My old computer has a customized initial IDE screen: The toolbars are the...
2
by: Tom McL. | last post by:
I have a program I am writing on my desktop computer with a screen resolution of 1024 by 768 when I run the program on my laptop with a screen resolution of 1280 by 768. the size and position of...
9
by: Gidi | last post by:
I've created a program in C#, which includes several Forms. some of the forms are in different size, but i start all of them in Window Normal Size. I took the exe file from the \bin\debug library...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.