?
Solved

Zoom a picturebox control- Visual Basic 6

Posted on 2006-10-26
9
Medium Priority
?
389 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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 400 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

752 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