|
-
Apr 17th, 2000, 04:52 PM
#1
Thread Starter
Hyperactive Member
[b] How do I use a progress-bar while a form i loading [/]
In my programm there are two froms:
Form1: The progress-bar
Form2: Has only a very large bitmap (22 MB) in it.
With the method I use, the progress-bar stopps when the
second form is loading.
Is there a possibility, that the progress-bar doesn't stop
while the second formm is loding ???
Thanks for some advice, Matt-D(eutschland)
THX
-
Apr 17th, 2000, 06:55 PM
#2
Frenzied Member
Why do you need a 22MB bitmap - can't you reduce the dpi, colours or size (using something like Paintshop Pro ?)
I don't think you will be able to display a progress bar during a form load because VB is concentrating on loading the form and no other code is being executed.
The other solution would be to write your own bitmap reading function that loads the bitmap in whilst drawing a progress bar. But I would seriously look at the size of the bitmap...
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Apr 17th, 2000, 09:11 PM
#3
Buzby, you can exectute vb-code even if other code is working.....
use the SETTIMER and KILLTIMER API, set the callback address to a sub in you're modul... and *ehk* even if a sub or function is in progress, the callback sub will be executed 
hope that helps,
taLON
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|