Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 23rd, 2006, 7:10 PM   #1
Raytheon
Newbie
 
Join Date: Mar 2006
Posts: 2
Rep Power: 0 Raytheon is on a distinguished road
Help with Timer

I am trying to make it so that when the spash screen timer ends it opens the report form. Its working on closing the splash window on timer and opening the reportform, but the reportform keep showing over and over every 8 seconds... Please can someone help me?

Here is the code:

   Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
        Me.Visible = False
        Dim MyForm As ReportForm
        MyForm = New ReportForm
        MyForm.Show()
    End Sub
Raytheon is offline   Reply With Quote
Old Mar 25th, 2006, 1:36 PM   #2
brownhead
Programmer
 
Join Date: Mar 2006
Location: California
Posts: 37
Rep Power: 0 brownhead is on a distinguished road
Send a message via AIM to brownhead Send a message via MSN to brownhead
I odn't know VB.NET but I know what the problem is. YOu never disabled your timer when you opened the window. I'm expecting it to be something along the lines of...
   Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
        Timer.Enabled = False
        Me.Visible = False
        Dim MyForm As ReportForm
        MyForm = New ReportForm
        MyForm.Show()
    End Sub
I dunno if enabled is the property for timers in VB.Net.. but try that out. All ya got to do is disable the timer. If ya need more help IM me, g'day all
brownhead is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:12 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC