Solved

progressbar while loading picture

Posted on 1998-05-28
6
228 Views
Last Modified: 2012-05-04
I want to display a progressbar when a picture is being loaded (Like Paintshop Pro does), to let the user know there is something happening. Picturesize lies between 700 Kb and > 4 Mb.

0
Comment
Question by:Pmijnster
  • 3
  • 2
6 Comments
 

Expert Comment

by:qhenry
ID: 1461887
I do this with a Lead Tools ActiveX control to display the picture. It provides a ProgressStatus event which can be used to drive a progress bar. It works real well!


0
 

Author Comment

by:Pmijnster
ID: 1461888
I have a different Active X control (Image Knife), which doesn't supply this kind of info. Sorry, this answer is no use to me.
0
 
LVL 1

Expert Comment

by:Cardo
ID: 1461889
What kind of information do you get from this control.

Any form of percentage loaded available while loading?

When loading does your VB Code pause until loaded, or does it continue and the control notify you via an event when loading is complete?

You may want to do something like display a simple AVI in a window while it is loading, like when files are being deleted.

Cardo.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Accepted Solution

by:
qhenry earned 20 total points
ID: 1461890
Pmijnster,

I assessed Image Knife among others and finally settled on Lead Tools as it gave me the events and file formats I needed.

This will give you the progress bar event you need while an image loads, with a very smooth flow of data. The progress bar runs very smoothly.

qhenry
 
0
 

Author Comment

by:Pmijnster
ID: 1461891
There is nothing returned from the control, and my client wants to know how long he has to wait until the picture is shown.
Image Knife uses the same method to load a picture as the ordinary picturebox. Imagine having just a picturebox to display a picture, and you want to show a progress bar...
0
 

Expert Comment

by:qhenry
ID: 1461892
> Imagine having just a picturebox to display a picture, and you want to show a progress bar...

That's exactly the way I use the Lead Tools control - as a picture box that drives a progress bar. Look at their trial version - it works great!

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 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…

759 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

18 Experts available now in Live!

Get 1:1 Help Now