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

Visual Basic

 
Questionit's Strange,vb6 web activex call a js function!!! [modified] Pin
itneste19-Apr-11 21:23
itneste19-Apr-11 21:23 
AnswerRe: it's Strange,vb6 web activex call a js function!!! Pin
_Erik_25-Apr-11 3:23
_Erik_25-Apr-11 3:23 
QuestionNeed system clock advice. Pin
nlarson1119-Apr-11 11:01
nlarson1119-Apr-11 11:01 
AnswerRe: Need system clock advice. Pin
Manfred Rudolf Bihy19-Apr-11 12:45
professionalManfred Rudolf Bihy19-Apr-11 12:45 
GeneralRe: Need system clock advice. Pin
nlarson1119-Apr-11 13:28
nlarson1119-Apr-11 13:28 
AnswerRe: Need system clock advice. Pin
Luc Pattyn19-Apr-11 13:11
sitebuilderLuc Pattyn19-Apr-11 13:11 
GeneralRe: Need system clock advice. Pin
nlarson1119-Apr-11 13:30
nlarson1119-Apr-11 13:30 
AnswerRe: Need system clock advice. Pin
Luc Pattyn19-Apr-11 13:38
sitebuilderLuc Pattyn19-Apr-11 13:38 
nlarson11 wrote:
Would you choose a timer or a thread.sleep loop?


Both are doable, and my choice depends on circumstances.

Threads are more expensive than timers, yet they have automatic state: your thread waits where ever you make it wait, and it knows where it is, even if inside nested methods, loops, etc.

Warning: with a single thread or timer, you can't have two actions running at the same time, which could be good or bad, depends on requirements. With a thread or timer per action (which could be expensive, depending on their number) actions could overlap and interfere with each other.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Need system clock advice. Pin
nlarson1119-Apr-11 13:52
nlarson1119-Apr-11 13:52 
AnswerRe: Need system clock advice. Pin
Luc Pattyn19-Apr-11 14:32
sitebuilderLuc Pattyn19-Apr-11 14:32 
AnswerRe: Need system clock advice. Pin
Bernhard Hiller25-Apr-11 22:05
Bernhard Hiller25-Apr-11 22:05 
QuestionVisual Basic 2010 printing on a Zebra via serial port Pin
EdMee19-Apr-11 8:11
EdMee19-Apr-11 8:11 
AnswerRe: Visual Basic 2010 printing on a Zebra via serial port Pin
Dave Kreskowiak19-Apr-11 13:38
mveDave Kreskowiak19-Apr-11 13:38 
GeneralRe: Visual Basic 2010 printing on a Zebra via serial port Pin
EdMee21-Apr-11 11:40
EdMee21-Apr-11 11:40 
GeneralRe: Visual Basic 2010 printing on a Zebra via serial port Pin
Dave Kreskowiak21-Apr-11 12:05
mveDave Kreskowiak21-Apr-11 12:05 
QuestionConvert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Paramu197318-Apr-11 5:23
Paramu197318-Apr-11 5:23 
AnswerRe: Convert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Simon_Whale18-Apr-11 5:33
Simon_Whale18-Apr-11 5:33 
JokeRe: Convert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Andy_L_J24-Apr-11 1:52
Andy_L_J24-Apr-11 1:52 
QuestionLogin Project Help... Pin
dzhello18-Apr-11 4:01
dzhello18-Apr-11 4:01 
AnswerRe: Login Project Help... Pin
Dave Kreskowiak18-Apr-11 4:38
mveDave Kreskowiak18-Apr-11 4:38 
AnswerRe: Login Project Help... Pin
Simon_Whale18-Apr-11 5:31
Simon_Whale18-Apr-11 5:31 
QuestionProject Help! Pin
Member 784273314-Apr-11 16:15
Member 784273314-Apr-11 16:15 
AnswerRe: Project Help! Pin
Luc Pattyn15-Apr-11 0:17
sitebuilderLuc Pattyn15-Apr-11 0:17 
AnswerRe: Project Help! Pin
_Erik_18-Apr-11 3:19
_Erik_18-Apr-11 3:19 
Questionvisual basic data report Pin
sandeepkumardadwal11-Apr-11 19:30
sandeepkumardadwal11-Apr-11 19:30 

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.