Solved

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

Posted on 2004-08-17
2
164 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 33

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 56
Using "ScreenUpdating" 6 55
Exit a vb6 apps when a calling it apps closes 15 43
I need help embedding an image as HTML in my vb.net application 3 49
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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

910 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

24 Experts available now in Live!

Get 1:1 Help Now