Solved

Zoom a picturebox control- Visual Basic 6

Posted on 2006-10-26
9
378 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

744 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

14 Experts available now in Live!

Get 1:1 Help Now