#1 (permalink)  
Old 04-26-04, 03:01 PM
Marwan Marwan is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question Timer

How do I use the Timer Function to unload a form after 3 seconds of starting and reload other form after the first one closes?

Thanks for your time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-02-04, 09:46 PM
schiavo schiavo is offline
Newbie Coder
 
Join Date: May 2004
Location: SW Missouri
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I'd write one timer event, on a timer set with interval = 3000 (3 seconds)

sub timer_timer()
Unload Me
' Unload does not terminate the current thread, but closes at end sub
dim NuForm as new form3
NuForm.Show
end sub

Quote:
Originally Posted by Marwan
How do I use the Timer Function to unload a form after 3 seconds of starting and reload other form after the first one closes?

Thanks for your time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-11-04, 05:00 PM
irajiii irajiii is offline
New Member
 
Join Date: May 2004
Location: Pa., USA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I was using this in the main form load

Dim Splash As New Splash
Splash.ShowDialog()
dbname.Clear()
OleDbDataAdapter1.Fill(dbname)

and then in the form you want to close in 3 seconds, use the timer like this

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.Close()
End Sub

Last edited by irajiii; 05-11-04 at 05:03 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php timer djew3001 PHP 11 08-16-06 06:24 PM
Asp Timer Ph33r ASP 3 05-10-04 10:18 AM


All times are GMT -5. The time now is 06:34 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.