Solved

Zoom a picturebox control- Visual Basic 6

Posted on 2006-10-26
9
383 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
  • 4
  • 3
9 Comments
 
LVL 85

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 85

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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 85

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 85

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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 is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

821 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