Click here to Skip to main content
15,892,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHalf a solution Pin
RCoate30-Jun-08 19:33
RCoate30-Jun-08 19:33 
QuestionInstant CPU Utilization Value Pin
NeilPrice30-Jun-08 11:40
NeilPrice30-Jun-08 11:40 
AnswerRe: Instant CPU Utilization Value Pin
Thomas Stockwell30-Jun-08 11:56
professionalThomas Stockwell30-Jun-08 11:56 
GeneralRe: Instant CPU Utilization Value Pin
NeilPrice1-Jul-08 4:38
NeilPrice1-Jul-08 4:38 
QuestionTimer Question Pin
DCAUB30-Jun-08 10:13
DCAUB30-Jun-08 10:13 
AnswerRe: Timer Question Pin
Luc Pattyn30-Jun-08 10:41
sitebuilderLuc Pattyn30-Jun-08 10:41 
GeneralRe: Timer Question Pin
DCAUB30-Jun-08 12:26
DCAUB30-Jun-08 12:26 
GeneralRe: Timer Question Pin
Luc Pattyn30-Jun-08 12:35
sitebuilderLuc Pattyn30-Jun-08 12:35 
Hi,

I would use a single Windows.Forms.Timer that runs at say 1 second intervals all the time, always
enabled; plus a single variable (say Duration) that keeps the remaining time (in seconds)
for the current item.

in the Tick handler:
1. decrement Duration
2. if it becomes zero/negative:
- read the next record in the Database
- load the new item to show/play/whatever
- set Duration to its required value

That's about it.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


GeneralRe: Timer Question Pin
DCAUB30-Jun-08 20:19
DCAUB30-Jun-08 20:19 
QuestionC++ Controls in VB? Pin
Saul Johnson30-Jun-08 8:19
Saul Johnson30-Jun-08 8:19 
AnswerRe: C++ Controls in VB? Pin
Kenny McKee30-Jun-08 8:59
Kenny McKee30-Jun-08 8:59 
QuestionMenuStrip control searching by menue name Pin
Georg Kohler30-Jun-08 8:06
Georg Kohler30-Jun-08 8:06 
AnswerRe: MenuStrip control searching by menue name Pin
Thomas Stockwell30-Jun-08 11:12
professionalThomas Stockwell30-Jun-08 11:12 
GeneralRe: MenuStrip control searching by menue name Pin
Georg Kohler30-Jun-08 11:38
Georg Kohler30-Jun-08 11:38 
GeneralRe: MenuStrip control searching by menue name Pin
Thomas Stockwell30-Jun-08 11:51
professionalThomas Stockwell30-Jun-08 11:51 
AnswerRe: MenuStrip control searching by menue name Pin
Scott Dorman30-Jun-08 15:58
professionalScott Dorman30-Jun-08 15:58 
GeneralRe: MenuStrip control searching by menue name Pin
Georg Kohler30-Jun-08 16:13
Georg Kohler30-Jun-08 16:13 
GeneralRe: MenuStrip control searching by menue name Pin
Scott Dorman30-Jun-08 18:08
professionalScott Dorman30-Jun-08 18:08 
GeneralRe: MenuStrip control searching by menue name Pin
Georg Kohler30-Jun-08 21:38
Georg Kohler30-Jun-08 21:38 
GeneralRe: MenuStrip control searching by menue name Pin
Scott Dorman30-Jun-08 22:44
professionalScott Dorman30-Jun-08 22:44 
QuestionVB.Net 3D in wpf Pin
cristi2go30-Jun-08 7:07
cristi2go30-Jun-08 7:07 
AnswerRe: VB.Net 3D in wpf Pin
Thomas Stockwell30-Jun-08 11:15
professionalThomas Stockwell30-Jun-08 11:15 
QuestionRe: VB.Net 3D in wpf Pin
cristi2go1-Jul-08 6:09
cristi2go1-Jul-08 6:09 
AnswerRe: VB.Net 3D in wpf Pin
Thomas Stockwell1-Jul-08 6:48
professionalThomas Stockwell1-Jul-08 6:48 
AnswerCross Post Pin
Thomas Stockwell2-Jul-08 2:54
professionalThomas Stockwell2-Jul-08 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.