Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Eenlarge and back-to-original-size of a VB 6 form...

Posted on 2004-08-17
2
167 Views
Last Modified: 2012-05-05
I have designed a small vb 6 form with bunch of buttons, drop boxes, etc tightly put together.  Is it possible to switch back and fort to a larger size form (with all controls enlarged proportionally) and back to its original size?

What is the code to do this?

Mike

0
Comment
Question by:Mike Eghtebas
2 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 400 total points
ID: 11826795
You can add this bas module to your project:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=42315&lngWId=1

Then add this to each form you want to resize the controls on:

Private Sub Form_Resize()
ReSizeFormFor Me
End Sub
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 11827420
Thank you.  It works grat except in one case where I am using small picture boxes as command button.  When the form is resized, the picture button changes in size but its bitmap picture attributes remain the same size.  I will look to see, at least, if I can get the bitmap images remain centered inside picture box.  Any comment in this regard would be appreciated.

Regards,


Mike
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question