Solved

Zoom a picturebox control- Visual Basic 6

Posted on 2006-10-26
9
384 Views
Last Modified: 2013-12-26
Here is the situation.

I have a picturebox(container) that I have loaded several(between 14-50) activeX controls into.  These activex controls are displaying real time data.  Because I have so many controls loaded, the resolution on them is terrible/unreadable. (Imagine a frame control with 10 lables displaying data on them, and then having a few dozen of these controls dispersed in the picturebox)

All of the examples I have seen so far deal with zooming in on the picturebox that contains a static image, not activeX controls.

My objective:

Is to be able to zoom into the picturebox control and view the activex controls in a larger resolution and still have the controls in their active state.

Thanks for your assitance.
0
Comment
Question by:michiganblkman
[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
  • 4
  • 3
9 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 17814166
As far as I know there isn't any efficient way to do this...

I suppose you could add a second PictureBox to the form and then take screenshots of the first one and enlarge/crop the image to make a "zoomed" window in the second PB.
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 17814175
*But if you don't have good resolution with the controls in the first PB, you would just be enlarging an already bad image and making it worse.

Do you have control over these activeX controls?
0
 

Author Comment

by:michiganblkman
ID: 17814210
Yes.  I have full control over these activeX controls.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 17814238
Maybe you could code them to display themselves in "normal" or "zoomed" mode.  Then you can toggle toggle them from the main app...either individually or all as a group?

It's a little vague I know.  Give us more details on your ActiveX controls.  What do they do and how are they layed out?
0
 

Author Comment

by:michiganblkman
ID: 17814412
The activex controls represent stations in a production line configuration.

The control consists of several lables that identify station ID, bottleneck information, two progress bars to reflect TimeStarved and TimeBlocked data, upstream in formation, downstream information etc.

A scenario is in a multi laned production line the product can take several "Paths" thru the assembly process. For example, From station 1, the product COULD flow to station 2, or station 3, or station 4,  then all of these stations would flow into a station 5.

Some examples of the paths that the product could flow from the above scenario would be

Stations
1, 2, 5
1, 3, 5
1, 4, 5

With that in mind, if the production manager wanted to evaluate the efficiency on path "1, 4, 5" the application would  dynamically "draw" out stations 1, 4 and 5 on the screen.

Further, I want to include the functionality to zoom into the individual stations or region of stations, or have the application automatically scroll to identified problem areas in the assembly process.

I am at the point where I can draw the various path configurations into the picturebox control
0
 

Author Comment

by:michiganblkman
ID: 17818871
Upgraded to 500 points
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 100 total points
ID: 17907968
Sorry for the dry spell there...

Without seeing code for your controls I really can't make any specific recommendations.

The only generic suggestion I can make is change the FONT SIZE to larger when you want to "zoom in".  Then change it back to smaller when you are done.

Obviously you would just change the height of controls like the progressbar to make them bigger.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…

740 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