[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Zoom a picturebox control- Visual Basic 6

Posted on 2006-10-26
9
Medium Priority
?
390 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

650 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