Help needed with Visual Basic

Associate
Joined
21 Aug 2005
Posts
715
I need to create an app with 4 countdown timers that intervals change based on what radio button is selected.

Not sure what code to use for this, as I'm just learning Visual Basic 2005 Express Edition with the videos on MSDN.

I was thinking of creating a case / select branching statement.

Select Case Radiobuttoncollection.SelectedItem.To String()
Case "option1"
how do I link this to a label in my app to change a countdown timer?
Case "option2"


Help is really appreciated.
 
Well if you are learning i am not sure how much input you want.

But it should be something along the lines of (in plain english). On option select, change timer.interval.

On the actual form you will have to have a group box with all the options in.

EDIT:

In answer to your question. You are looking for

Code:
Dim timer as Timer
Dim interval as Integer

timer.interval = interval
 
Not sure how to put this in. I've got the form all set up and radio buttons grouped but how do I exactly make the countdown timers? Does it go in as a label?
 
Where do the labels come in? I thought you wanted to change the interval?

Edit:

I see what you mean,

You need to have a timer control. On timer tick event, you would have the label countdown.

And then the radio buttons would chang the timer interval via timer.interval.
 
Back
Top Bottom