|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Progress bar - No activityDuring project loading I display a splash (welcome) form with a progress
bar triggered by a timer (on this form). The loading of the project and data, is done Not by this form, but by a hidden Main form which, at the end unloads the splash form and shows itselve. The problem is that both the progress bar and even a gif file are freezed and not showing any life. Only at the second when I close the splash form it shows something before vading away. How do I make everything move on screen? Thanks, adh *** Sent via Developersdex http://www.developersdex.com *** How are you showing the splash screen?
Are you using 'ShowDialog()'? If so, change it to 'Show()' & see if that corrects it Crouchie1998 BA (HONS) MCP MCSE Hello, adh,
I suspect that you may need to put a few strategically placed Application.DoEvents within the code of the hidden main form that is doing the loading. Cheers, Randy adh wrote: Show quoteHide quote > During project loading I display a splash (welcome) form with a progress > bar triggered by a timer (on this form). The loading of the project and > data, is done Not by this form, but by a hidden Main form which, at the > end unloads the splash form and shows itselve. > The problem is that both the progress bar and even a gif file are > freezed and not showing any life. Only at the second when I close the > splash form it shows something before vading away. > > How do I make everything move on screen? > > > Thanks, adh > > *** Sent via Developersdex http://www.developersdex.com *** I need code to help.
-- Show quoteHide quoteGet a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "adh" <a**@devx.com> wrote in message news:u2fiHoWNGHA.3164@TK2MSFTNGP11.phx.gbl... > During project loading I display a splash (welcome) form with a progress > bar triggered by a timer (on this form). The loading of the project and > data, is done Not by this form, but by a hidden Main form which, at the > end unloads the splash form and shows itselve. > The problem is that both the progress bar and even a gif file are > freezed and not showing any life. Only at the second when I close the > splash form it shows something before vading away. > > How do I make everything move on screen? > > > Thanks, adh > > *** Sent via Developersdex http://www.developersdex.com *** ADH,
Why are you making it yourself so difficult. Why not use two panels. Docked to full. Make visable (and not visable the other) the one with your progressbar while loading (and do that than in the same time as your activities in the activated event with a static boolean switch, to be sure to do it once). If that is ready you can make visable your actual panel. In my idea gives that the same effect as you are now telling however with much less work (and trouble). I hope this helps, Cor ADH,
Because that I saw more question of this have I made a sample and put on our site. It is brand new, you can try it. http://www.vb-tips.com/default.aspx?ID=e712f49d-7f54-4f59-945f-cfc96c6ca913 I hope this helps, Cor Show quoteHide quote "adh" <a**@devx.com> schreef in bericht news:u2fiHoWNGHA.3164@TK2MSFTNGP11.phx.gbl... > During project loading I display a splash (welcome) form with a progress > bar triggered by a timer (on this form). The loading of the project and > data, is done Not by this form, but by a hidden Main form which, at the > end unloads the splash form and shows itselve. > The problem is that both the progress bar and even a gif file are > freezed and not showing any life. Only at the second when I close the > splash form it shows something before vading away. > > How do I make everything move on screen? > > > Thanks, adh > > *** Sent via Developersdex http://www.developersdex.com *** |
|||||||||||||||||||||||