Results 1 to 3 of 3

Thread: Progrss-Bar

  1. #1

    Thread Starter
    Hyperactive Member Matt-D's Avatar
    Join Date
    Nov 1999
    Location
    Mettmann, Germany
    Posts
    305
    [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

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Question

    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."

  3. #3
    Guest

    Lightbulb

    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
  •  



Click Here to Expand Forum to Full Width