Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb5 pro: progressbar for a loading image

Status
Not open for further replies.

MysticFallout

Technical User
Sep 21, 2002
14
US
how could i make a progress bar work with a loading image? i have an image control which loads the selected image, and i want the progress bar to load as the image loads. just not sure how to do this.

any help apreciated
 
No ideas? I've been trying and trying and still cant get it. I'm assuming it can't be done or it's maybe to easy to even answer? LOL!! (I'm kidding with that comment :))
 

Using the LoadPicture function its a one liner! So there is no loop to be able to have a progress bar increase. The only problem is with this one liner the larger the graphic the longer it takes so it looks like your program freezes for a moment but hey thats VB.

The only other way to get around this is to create a loading function yourself. Then you can place code in the loop that reads the bytes to increment the progressbar, but any thing that you come up with will take at least twice as long as the loadpicture function.

BTW, have you read FAQ222-2244 yet?

Good Luck

 
hey vb5prgrmr

thank you for your reply. :D it helped me greatly. as for my project, ill just let the pbar go.

as for the faq, no i hadnt read that one yet. thanks for letting me know about it :D (good posting ideas!)

to anyone that may have been annoyed with me sending this thread TTT, i apologize. i figured i waited quite a while for a response and thought that i had waited long enough :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top