Solved

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

Posted on 2004-08-17
2
170 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
[X]
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
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 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