Solved

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

Posted on 2004-08-17
2
163 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
Comment Utility
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 33

Author Comment

by:Mike Eghtebas
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now