Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2008 > Visual Basic 2008 Professionals
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 14th, 2010, 05: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 05:39 PM.
Reply With Quote
  #2 (permalink)  
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.
Reply With Quote
  #3 (permalink)  
Old September 26th, 2011, 01:01 PM
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09:23 PM
play animated gifs on an access form dartcoach Access 6 June 17th, 2005 04:39 PM



All times are GMT -4. The time now is 04:22 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.