Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to create a count down timer were when the program has reached 3:52 mins of running it will open up a new form

What I have tried:

i havent tried anything yet and i cant find anything on the internet
Posted
Updated 17-Nov-17 2:59am
Comments
CHill60 16-Nov-17 19:01pm    
"i havent tried anything yet and i cant find anything on the internet" ...
Try writing some code. If you want to learn then you have to do it for yourself. Stop looking for answers on the internet and learn to do it for yourself! Stretch the world, don't just echo it
Member 13508572 18-Nov-17 7:47am    
im new to programming and i needed to start somewhere, and what i did end up programming still wasn't working...
A_Griffin 16-Nov-17 19:01pm    
Use the standard timer control
Karthik_Mahalingam 16-Nov-17 22:50pm    
google "vb.net countdown timer"
Ralf Meier 17-Nov-17 3:06am    
Basicly I agree with CHill.
"I haven't tried anything" is no approach for anything.
"there is nothing to be found in the Internet" - I can't believe it ...
But to your project :
How do you think how you could find out when a given time is ellapsed ? How could it be calculated ? Try to use some basic mathematics ...

1 solution

VB
Private WithEvents ICantBeBotheredToGoogleThis As New Timer

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ICantBeBotheredToGoogleThis.Interval = 232000
    ICantBeBotheredToGoogleThis.Start()
End Sub

Private Sub ICantBeBotheredToGoogleThis_Tick(sender As Object, e As EventArgs) Handles ICantBeBotheredToGoogleThis.Tick
    Dim IAmALazyCoder As New Form2
    IAmALazyCoder.ShowDialog()
End Sub
 
Share this answer
 
Comments
Graeme_Grant 17-Nov-17 9:04am    
LMAO!
Lockwood 17-Nov-17 9:07am    
I'm guessing this is what OP was after.
A 3:52 delay to displaying Form1 would seem a bit strange.
Member 13508572 18-Nov-17 7:49am    
meant to be a intro of a game that i'm making, the video is 3;52 and once that timer has elapsed it will move to form2 (the main menu) also thanks for the code but even with this it didn't work as it just froze the video i was trying to play, that is why everything i found on the internet didn't work.
Lockwood 18-Nov-17 8:08am    
Wow.

One, that's long intro video.
Two, tie the event in to video events, not a timer.
Ralf Meier 18-Nov-17 10:22am    
The best way to get a Solution allways is :
- try to writen down what you want to do and how it show work
- try to code it
-> if your code not work well or not as you want : post it and explain your problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900