Click here to Skip to main content
16,007,277 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWebbrowser control need help Pin
King of Kingz10-Jan-08 0:58
King of Kingz10-Jan-08 0:58 
GeneralRe: Webbrowser control need help Pin
Dave Kreskowiak10-Jan-08 4:32
mveDave Kreskowiak10-Jan-08 4:32 
QuestionTimer with Date function Pin
Xooku10-Jan-08 0:49
Xooku10-Jan-08 0:49 
GeneralRe: Timer with Date function Pin
Dave Kreskowiak10-Jan-08 4:26
mveDave Kreskowiak10-Jan-08 4:26 
QuestionRe: Timer with Date function Pin
Xooku10-Jan-08 20:20
Xooku10-Jan-08 20:20 
GeneralRe: Timer with Date function Pin
Dave Kreskowiak11-Jan-08 1:33
mveDave Kreskowiak11-Jan-08 1:33 
QuestionRe: Timer with Date function Pin
Xooku13-Jan-08 18:03
Xooku13-Jan-08 18:03 
GeneralRe: Timer with Date function Pin
Dave Kreskowiak14-Jan-08 1:43
mveDave Kreskowiak14-Jan-08 1:43 
Xooku wrote:
In my previous reply I used a timer. Would this be the correct way then to use threading?


No, it's not. You normally wouldn't start a thread just to run a simple method like that, since it executes in under a few milliseconds. You would normally use threading to start a long-running process that would otherwise hang your user interface so it still responds when the user does something.

In your case, you'd put the entire Timer operation in a seperate thread. You'd create a seperate class that includes the loop, the start and end times, and some code to launch whatever process you need when the time comes.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: Timer with Date function Pin
Xooku14-Jan-08 17:35
Xooku14-Jan-08 17:35 
QuestionRe: Timer with Date function Pin
Xooku16-Jan-08 22:30
Xooku16-Jan-08 22:30 
QuestionRe: Timer with Date function Pin
Xooku20-Jan-08 18:52
Xooku20-Jan-08 18:52 
QuestionMonitoring Power status on Laptop Pin
aspireneo10-Jan-08 0:40
aspireneo10-Jan-08 0:40 
GeneralRe: Monitoring Power status on Laptop Pin
Dave Kreskowiak10-Jan-08 2:05
mveDave Kreskowiak10-Jan-08 2:05 
QuestionHow to load record into a dataset??? Pin
Support1239-Jan-08 20:17
Support1239-Jan-08 20:17 
AnswerHow to READ record FROM a dataset??? Pin
Support1239-Jan-08 22:32
Support1239-Jan-08 22:32 
GeneralRe: How to READ record FROM a dataset??? Pin
Support1239-Jan-08 23:28
Support1239-Jan-08 23:28 
GeneralRe: How to READ record FROM a dataset??? Pin
ChandraRam10-Jan-08 1:39
ChandraRam10-Jan-08 1:39 
AnswerRe: How to READ record FROM a dataset??? Pin
Support12310-Jan-08 3:18
Support12310-Jan-08 3:18 
GeneralRe: How to READ record FROM a dataset??? Pin
Support12310-Jan-08 3:21
Support12310-Jan-08 3:21 
GeneralRe: How to READ record FROM a dataset??? Pin
Dave Kreskowiak10-Jan-08 4:07
mveDave Kreskowiak10-Jan-08 4:07 
GeneralRe: How to READ record FROM a dataset??? Pin
Support12310-Jan-08 18:40
Support12310-Jan-08 18:40 
GeneralRe: How to READ record FROM a dataset??? Pin
Dave Kreskowiak11-Jan-08 1:28
mveDave Kreskowiak11-Jan-08 1:28 
GeneralRe: How to READ record FROM a dataset??? Pin
ChandraRam10-Jan-08 4:17
ChandraRam10-Jan-08 4:17 
GeneralHelp me on migration issues. Pin
soniasan9-Jan-08 19:10
soniasan9-Jan-08 19:10 
GeneralRe: Help me on migration issues. Pin
Dave Kreskowiak10-Jan-08 2:04
mveDave Kreskowiak10-Jan-08 2:04 

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.