Click here to Skip to main content
16,011,949 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Timer_Tick event not called Pin
Wendelius28-Sep-08 4:40
mentorWendelius28-Sep-08 4:40 
QuestionRe: Timer_Tick event not called Pin
Sonhospa28-Sep-08 5:10
Sonhospa28-Sep-08 5:10 
AnswerRe: Timer_Tick event not called Pin
Wendelius28-Sep-08 5:34
mentorWendelius28-Sep-08 5:34 
QuestionRe: Timer_Tick event not called Pin
Sonhospa28-Sep-08 5:49
Sonhospa28-Sep-08 5:49 
AnswerRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 3:31
mentorWendelius29-Sep-08 3:31 
NewsRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 3:58
Sonhospa29-Sep-08 3:58 
GeneralRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 4:19
mentorWendelius29-Sep-08 4:19 
GeneralRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 5:03
Sonhospa29-Sep-08 5:03 
Don't mind your signature Wink | ;) it's a good reminder to learn, anyway, and I didn't take it personally.

Something you misunderstood: I didn't update lblTimer (a label on the main form) in background worker, but in the Timer_Tick event. Other controls (progress bar etc.) were updated in background worker (process_changed).

The use of a background worker arose from the idea NOT to block the UI with long lasting (looping) function (purpose: listing of large directories in a given path). So my basic concept for that seemingly simple thing was:
1. Start the timer from the forms main routine
2. Start a background worker (also from the forms main routine)
3. Let the timer count the seconds while user sees a marquee-style progress indicator as long as the background worker is running
4. Stop timer when background worker is finished

Actually I tried out the whole BW / Timer stuff to learn something about better design Wink | ;) but it seems I'm trapped somewhere WTF | :WTF:
GeneralRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 5:56
mentorWendelius29-Sep-08 5:56 
GeneralRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 6:17
Sonhospa29-Sep-08 6:17 
GeneralRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 6:24
mentorWendelius29-Sep-08 6:24 
GeneralRe: Timer_Tick event not called Pin
Jon_Boy29-Sep-08 7:57
Jon_Boy29-Sep-08 7:57 
JokeRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 11:25
Sonhospa29-Sep-08 11:25 
QuestionPrint the values in Crystel Reports Pin
vidhish27-Sep-08 22:11
vidhish27-Sep-08 22:11 
AnswerRe: Print the values in Crystel Reports Pin
Mycroft Holmes28-Sep-08 16:31
professionalMycroft Holmes28-Sep-08 16:31 
QuestionHEEELP: Regular Expressions Pin
Sonhospa27-Sep-08 3:20
Sonhospa27-Sep-08 3:20 
AnswerRe: HEEELP: Regular Expressions Pin
Sonhospa27-Sep-08 11:12
Sonhospa27-Sep-08 11:12 
GeneralRe: HEEELP: Regular Expressions Pin
Paul Conrad27-Sep-08 11:18
professionalPaul Conrad27-Sep-08 11:18 
GeneralRe: HEEELP: Regular Expressions Pin
Sonhospa27-Sep-08 12:11
Sonhospa27-Sep-08 12:11 
GeneralRe: HEEELP: Regular Expressions Pin
Paul Conrad27-Sep-08 14:11
professionalPaul Conrad27-Sep-08 14:11 
QuestionIcomparer property Pin
member2727-Sep-08 2:03
member2727-Sep-08 2:03 
AnswerRe: Icomparer property Pin
Dave Kreskowiak27-Sep-08 3:16
mveDave Kreskowiak27-Sep-08 3:16 
QuestionHow to Hide Process from Task Manager. Pin
Anubhava Dimri27-Sep-08 0:17
Anubhava Dimri27-Sep-08 0:17 
AnswerRe: How to Hide Process from Task Manager. Pin
Dave Kreskowiak27-Sep-08 3:14
mveDave Kreskowiak27-Sep-08 3:14 
GeneralRe: How to Hide Process from Task Manager. Pin
Paul Conrad27-Sep-08 7:59
professionalPaul Conrad27-Sep-08 7:59 

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.