4 Replies - 1162 Views - Last Post: 15 December 2013 - 05:43 PM Rate Topic: -----

#1 tapport  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 15-December 13

Help with Progress Bar and Timer

Posted 15 December 2013 - 01:34 PM

I'm making an app that uses timers of 60000 ms and 90000 ms intervals. I'm making it so clicking a button is green so you can easily see if you started a timer but I'd also like the user to see timer progress. To do this I'm using a progress bar but I'm having a lot of trouble trying to get the bar to match the timers.

I've tried making Step = Interval and Maximum = Interval but I'm not getting it. I tried working with some source code from another site but still can't seem to figure it out. Can someone please try to explain how to do this?

Timers: t60 & t90
Progress Bar: tp90

I don't need someone to write the code for me but I'd like an explanation that tells me what I'll need in my code, if you can share some source code that would be very helpful.

Thank you for any responses and taking the time to read.

Is This A Good Question/Topic? 0
  • +

Replies To: Help with Progress Bar and Timer

#2 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 2890
  • View blog
  • Posts: 9,597
  • Joined: 12-December 12

Re: Help with Progress Bar and Timer

Posted 15 December 2013 - 01:47 PM

Is this for VB6 or VB.NET? (aka Visual Basic 2010, etc.)

If VB.NET, here is a simple example:

http://vbprogramtips...er-control.html

It doesn't mention this, but you can set the properties of both the Timer and ProgressBar in the Properties window.

This post has been edited by andrewsw: 15 December 2013 - 01:50 PM

Was This Post Helpful? 0
  • +
  • -

#3 tapport  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 15-December 13

Re: Help with Progress Bar and Timer

Posted 15 December 2013 - 01:53 PM

This is almost what I need but I need the progress bar's max to equal the timer. If I need to I'll program it so clicking the button to start the timer changes the max but I'm hoping there's an automatic way of doing it.

This post has been edited by andrewsw: 15 December 2013 - 02:00 PM
Reason for edit:: Removed previous quote

Was This Post Helpful? 0
  • +
  • -

#4 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 2890
  • View blog
  • Posts: 9,597
  • Joined: 12-December 12

Re: Help with Progress Bar and Timer

Posted 15 December 2013 - 02:05 PM

In what way would the ProgressBar.Maximum equal the Timer?

Nevertheless, you can set this Maximum on clicking a button to whatever (integer) value is appropriate.

And.. is this VB.NET?

This post has been edited by andrewsw: 15 December 2013 - 02:05 PM

Was This Post Helpful? 0
  • +
  • -

#5 tapport  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 15-December 13

Re: Help with Progress Bar and Timer

Posted 15 December 2013 - 05:43 PM

View Postandrewsw, on 15 December 2013 - 02:05 PM, said:

In what way would the ProgressBar.Maximum equal the Timer?

Nevertheless, you can set this Maximum on clicking a button to whatever (integer) value is appropriate.

And.. is this VB.NET?


Yes, VB net. Setting max with the button would work too. Would I make it 60000 steps or 60?
Don't mean to drag it onto another question but this just confusing. I've spent hours in VB but I can't wrap my mind around this piece of code. Thanks again for the help!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1