Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2008 > Visual Basic 2008 Professionals
|
Visual Basic 2008 Professionals For advanced Visual Basic coders working in version 2008. Beginning-level questions will be redirected to other forums,
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2010, 06:27 PM
Registered User
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Load Animated Image while form loading

Hello,

I have an application that connect to a database... and this process take a few minutes... and need to show an animated image or a message like "loading...." while the mainform is loading and connecting to the database

thanks
rgds
PS

Last edited by psantos_ao; January 14th, 2010 at 06:39 PM..
 
Old August 26th, 2010, 01:57 AM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hello
You can add an splash form.In vb6.0,It's called "frmSplash",and in VB2008, It's called "SplashScreen".You may need the code below to show your splash form(default name is SplashScreen1).
Code:
        Dim delayTime As Double
        Dim counter As Double
        Call SplashScreen1.Show()
        delayTime = VB.Timer()
        Do
            counter = VB.Timer() - delayTime
            System.Windows.Forms.Application.DoEvents()
        Loop While (counter < 4)
        Call SplashScreen1.Close()
The red number(4) is the time how long you splash form will last, you can change it at you will.
You can edit the information on the splash form to show what ever you want to show.
 
Old September 26th, 2011, 01:01 PM
Registered User
 
Join Date: Sep 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default I have an application that connect to a database

Hello,

I have an application that connect to a database... and this process take a few minutes... and need to show an animated image or a message like "loading...." while the mainform is loading and connecting to the database

thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Image to Image Control using JavaScript ctranjith General .NET 1 May 28th, 2013 05:43 AM
Animated icon on VB form Swati Chari Beginning VB 6 7 March 16th, 2008 12:25 AM
image loading abaso.jadhav01 ASP.NET 2.0 Basics 0 October 28th, 2006 01:24 AM
Loading Image through XSL anaik100 XSLT 0 February 15th, 2006 10:23 PM
play animated gifs on an access form dartcoach Access 6 June 17th, 2005 04:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.