Solved

progressbar while loading picture

Posted on 1998-05-28
6
236 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 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…
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…

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