Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Timer Control in VB.NET
Old
  (#1)
curious
Guest
 
Posts: n/a
Default Timer Control in VB.NET - 06-04-2007, 09:49 AM

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 ***ume 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?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Timer Control in VB.NET
Old
  (#2)
Randy Birch
Guest
 
Posts: n/a
Default Re: Timer Control in VB.NET - 06-04-2007, 09:49 AM

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" <EMAIL REMOVED> wrote in message
news:EMAIL REMOVED 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 ***ume 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?

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Timer Control in VB.NET
Old
  (#3)
curious
Guest
 
Posts: n/a
Default Re: Timer Control in VB.NET - 06-04-2007, 09:49 AM

"Randy Birch" <EMAIL REMOVED> wrote in message news:<FeTYc.150$%EMAIL REMOVED. 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" <EMAIL REMOVED> wrote in message
> news:EMAIL REMOVED 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 ***ume 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?

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Timer Control in VB.NET
Old
  (#4)
Hal Rosser
Guest
 
Posts: n/a
Default Re: Timer Control in VB.NET - 06-04-2007, 09:49 AM

each time the tick event fires, add to a variable,
use an if statement to check the variable then set properties.

"curious" <EMAIL REMOVED> wrote in message
news:EMAIL REMOVED 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 ***ume 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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Timer Control in VB.NET
Old
  (#5)
curious
Guest
 
Posts: n/a
Default Re: Timer Control in VB.NET - 06-04-2007, 09:50 AM

"Hal Rosser" <EMAIL REMOVED> wrote in message news:<2JaZc.65471$_EMAIL REMOVED> ...
> each time the tick event fires, add to a variable,
> use an if statement to check the variable then set properties.


Thanks.

<Snip>
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top