473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Timer Control in VB.NET

I am new to VB.NET and I need help in using timer control. Here is
the scenario. I have 3 labels (label 1, label2, label 3), and a start
button, all vertically aligned on the form.

Using a timer control with interval value of 3000, i.e 3 second, I
want to accomplish the following:

- Initially, only START button is visible to the user, i.e the 3
labels are set to be invisible.
- When click on START button, the button disappear and label 3
appears.
- After 3 seconds, the label 3 disappear and label 2 appears.
- After 3 seconds, the label 2 disappear and label 1 appears.
- After 3 seconds, the label 1 disappear and the form closes.

I am setting timer control's Enable property to "True" in Design
time.
I am setting timer control's Interval property value to 3000 in
Design Time.

I assume that I do all the coding in START button's click event,
starting with making START button invisible when a user clicks it.

Can anyone help me code what I want to accomplish?
Jul 17 '05 #1
4 23918
This group is pretty well targeting VB5 and VB6 ... you might want to try
one of these or some of the many other similarly-named groups devoted
exclusively to .net programming:

news://msnews.microsoft.com/microsof...dotnet.general
news://msnews.microsoft.com/microsof...t.languages.vb
news://msnews.microsoft.com/microsof....vsnet.general
news://msnews.microsoft.com/microsof...studio.general
news://msnews.microsoft.com/microsof....vstudio.setup

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"curious" <he**************@yahoo.com> wrote in message
news:ca**************************@posting.google.c om...
:I am new to VB.NET and I need help in using timer control. Here is
: the scenario. I have 3 labels (label 1, label2, label 3), and a start
: button, all vertically aligned on the form.
:
: Using a timer control with interval value of 3000, i.e 3 second, I
: want to accomplish the following:
:
: - Initially, only START button is visible to the user, i.e the 3
: labels are set to be invisible.
: - When click on START button, the button disappear and label 3
: appears.
: - After 3 seconds, the label 3 disappear and label 2 appears.
: - After 3 seconds, the label 2 disappear and label 1 appears.
: - After 3 seconds, the label 1 disappear and the form closes.
:
: I am setting timer control's Enable property to "True" in Design
: time.
: I am setting timer control's Interval property value to 3000 in
: Design Time.
:
: I assume that I do all the coding in START button's click event,
: starting with making START button invisible when a user clicks it.
:
: Can anyone help me code what I want to accomplish?

Jul 17 '05 #2
"Randy Birch" <rg************@mvps.org> wrote in message news:<Fe***************@news04.bloor.is.net.cable. rogers.com>...
This group is pretty well targeting VB5 and VB6 ... you might want to try
one of these or some of the many other similarly-named groups devoted
exclusively to .net programming:

news://msnews.microsoft.com/microsof...dotnet.general
news://msnews.microsoft.com/microsof...t.languages.vb
news://msnews.microsoft.com/microsof....vsnet.general
news://msnews.microsoft.com/microsof...studio.general
news://msnews.microsoft.com/microsof....vstudio.setup

Thanks a lot. I appreciate it.

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"curious" <he**************@yahoo.com> wrote in message
news:ca**************************@posting.google.c om...
:I am new to VB.NET and I need help in using timer control. Here is
: the scenario. I have 3 labels (label 1, label2, label 3), and a start
: button, all vertically aligned on the form.
:
: Using a timer control with interval value of 3000, i.e 3 second, I
: want to accomplish the following:
:
: - Initially, only START button is visible to the user, i.e the 3
: labels are set to be invisible.
: - When click on START button, the button disappear and label 3
: appears.
: - After 3 seconds, the label 3 disappear and label 2 appears.
: - After 3 seconds, the label 2 disappear and label 1 appears.
: - After 3 seconds, the label 1 disappear and the form closes.
:
: I am setting timer control's Enable property to "True" in Design
: time.
: I am setting timer control's Interval property value to 3000 in
: Design Time.
:
: I assume that I do all the coding in START button's click event,
: starting with making START button invisible when a user clicks it.
:
: Can anyone help me code what I want to accomplish?

Jul 17 '05 #3
each time the tick event fires, add to a variable,
use an if statement to check the variable then set properties.

"curious" <he**************@yahoo.com> wrote in message
news:ca**************************@posting.google.c om...
I am new to VB.NET and I need help in using timer control. Here is
the scenario. I have 3 labels (label 1, label2, label 3), and a start
button, all vertically aligned on the form.

Using a timer control with interval value of 3000, i.e 3 second, I
want to accomplish the following:

- Initially, only START button is visible to the user, i.e the 3
labels are set to be invisible.
- When click on START button, the button disappear and label 3
appears.
- After 3 seconds, the label 3 disappear and label 2 appears.
- After 3 seconds, the label 2 disappear and label 1 appears.
- After 3 seconds, the label 1 disappear and the form closes.

I am setting timer control's Enable property to "True" in Design
time.
I am setting timer control's Interval property value to 3000 in
Design Time.

I assume that I do all the coding in START button's click event,
starting with making START button invisible when a user clicks it.

Can anyone help me code what I want to accomplish?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.744 / Virus Database: 496 - Release Date: 8/24/2004
Jul 17 '05 #4
"Hal Rosser" <hm******@bellsouth.net> wrote in message news:<2J******************@bignews3.bellsouth.net> ...
each time the tick event fires, add to a variable,
use an if statement to check the variable then set properties.


Thanks.

<Snip>
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: William Bub | last post by:
Is there an accurate way to create a "stopwatch" good to 1/10 of a second? I'm not sure if I should use the timer control, or some way to access the computer timer. I found the following site...
3
by: David | last post by:
Hi There! I'm using Timer control to record how long my application perform certain tasks. However, apparently Timer control is not doing its' job (i.e. Not firing Tick event) while my...
11
by: Steve Jorgensen | last post by:
I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of...
5
by: Dhilip Kumar | last post by:
Hi all, I have developed a windows service using the windows service project template in VS.NET. I have used three controls in the service, a timer, performance counter and a message queue...
7
by: Noozer | last post by:
I have a timer on a form. It isn't firing at all. I know that the timer is enabled, and that the interval is low (4000, which should be 4 seconds). To ensure the timer wasn't being inadvertantly...
2
by: vinay | last post by:
Hi I must be missing some obvious point, but can someone let me know how do I add a windows.forms.timer control to a form at run time Private TM as new windows.forms.time Dim sForm as for ...
7
by: RobKinney1 | last post by:
Hello, Wow...I have one for you all and hopefully I am not understanding this timer object correctly. I have a timer setup that pulses a connection through a socket every 60 seconds. But it...
4
by: grayaii | last post by:
Hi, I have a simple form that handles all its paint functionality like so: this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); And the entry point to this...
4
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, i have a main thread an another worker thread. The main Thread creates another thread and waits for the threads signal to continue the main thread. Everything works inside a ModalDialog and...
3
by: Steve | last post by:
Hi All I am using VB.net 2008 and use timer controls within my applications Question Does the code in a Timer control.tick event run on a different thread to the main Application thread (UI...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.