Welcome to Dream.In.Code
Become a VB Expert!

Join 137,176 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,377 people online right now. Registration is fast and FREE... Join Now!




Timer

 
Reply to this topicStart new topic

Timer

diehardredsoxfan3
28 May, 2008 - 12:00 PM
Post #1

New D.I.C Head
*

Joined: 12 Feb, 2008
Posts: 9


My Contributions
Hey all,

I'm at home working on a project for school, and I need to make a splash screen.

Sadly, I totally forgot my notes in my locker, so I forgot how to use the timer.

Help please!!

Thank you,
Tom
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Timer
28 May, 2008 - 01:40 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,237



Thanked: 221 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
1. Drag the timer control onto your form
2. Give it a name
3. Go to the property called "interval" which will be the property for setting how often the timer fires an event. This is in milliseconds. So setting it to 1000 would be firing the timer event every second.
4. For the timer you will see an event called "tick". The tick event is the event that is called at the end of every interval time span of the timer. So if we have the interval every 1000 milliseconds it will fire the tick event every second.

In the tick event you can simply check how long a timer has been running or execute the incrementing of a variable etc and when it reaches a certain value, you close the form by unloading it.

Hopefully that helps you out. smile.gif
User is online!Profile CardPM
+Quote Post

diehardredsoxfan3
RE: Timer
28 May, 2008 - 05:26 PM
Post #3

New D.I.C Head
*

Joined: 12 Feb, 2008
Posts: 9


My Contributions
Thank you, but I actually need the whole code, like the Unload Me part, and the show\hide things. I just don't really remember that part.

Thank you,

Tom
User is offlineProfile CardPM
+Quote Post

tope10
RE: Timer
26 Jul, 2008 - 12:21 AM
Post #4

New D.I.C Head
*

Joined: 25 Jun, 2008
Posts: 22



Thanked: 2 times
My Contributions
QUOTE(diehardredsoxfan3 @ 28 May, 2008 - 06:26 PM) *

this is a sample splash screen.




Attached File(s)
Attached File  sample__timer.zip ( 1.38k ) Number of downloads: 32
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 10:52AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month