Click here to Skip to main content
15,894,546 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Outlook Write Events problem Pin
dcdhingra25-Aug-09 20:38
dcdhingra25-Aug-09 20:38 
GeneralRe: Outlook Write Events problem Pin
Steven J Jowett25-Aug-09 22:57
Steven J Jowett25-Aug-09 22:57 
GeneralRe: Outlook Write Events problem Pin
dcdhingra26-Aug-09 0:10
dcdhingra26-Aug-09 0:10 
QuestionHow do I update a Listbox in realtime Pin
Martin Stevens25-Aug-09 17:04
Martin Stevens25-Aug-09 17:04 
AnswerRe: How do I update a Listbox in realtime Pin
N a v a n e e t h25-Aug-09 17:10
N a v a n e e t h25-Aug-09 17:10 
GeneralRe: How do I update a Listbox in realtime Pin
Martin Stevens25-Aug-09 23:06
Martin Stevens25-Aug-09 23:06 
GeneralRe: How do I update a Listbox in realtime Pin
Dave Kreskowiak26-Aug-09 3:25
mveDave Kreskowiak26-Aug-09 3:25 
GeneralRe: How do I update a Listbox in realtime Pin
Luc Pattyn26-Aug-09 3:36
sitebuilderLuc Pattyn26-Aug-09 3:36 
Hi,

as others have said, you need a separate thread to keep things running AND your GUI alive.
Choose one of Thread, ThreadPool, or BackgroundWorker.

The former is the most flexible, the latter often is the most comfortable. You could implement a loop in its DoWork handler, include a Thread.Sleep if you want to, and call ReportProgress() to report progress on the GUI; i.e. your Progress handler could add data to the ListBox. That would seem the easiest way to avoid cross-thread problems. And you might want to read this little article[^] if you would consider another way (Thread, ThreadPool; or even BackgroundWorker without ReportProgress).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: How do I update a Listbox in realtime Pin
Martin Stevens26-Aug-09 18:59
Martin Stevens26-Aug-09 18:59 
QuestionWhere do you go for Icons? Pin
henrynb25-Aug-09 11:33
henrynb25-Aug-09 11:33 
AnswerRe: Where do you go for Icons? Pin
N a v a n e e t h25-Aug-09 17:11
N a v a n e e t h25-Aug-09 17:11 
AnswerRe: Where do you go for Icons? Pin
Sebastian Br.26-Aug-09 0:43
Sebastian Br.26-Aug-09 0:43 
AnswerRe: Where do you go for Icons? Pin
o m n i26-Aug-09 3:49
o m n i26-Aug-09 3:49 
AnswerRe: Where do you go for Icons? Pin
David Skelly26-Aug-09 4:29
David Skelly26-Aug-09 4:29 
GeneralRe: Where do you go for Icons? Pin
henrynb30-Aug-09 9:22
henrynb30-Aug-09 9:22 
QuestionConnection to MS Access on 64-bit Machines Pin
RichFeldman25-Aug-09 6:01
RichFeldman25-Aug-09 6:01 
AnswerRe: Connection to MS Access on 64-bit Machines Pin
The Man from U.N.C.L.E.25-Aug-09 6:13
The Man from U.N.C.L.E.25-Aug-09 6:13 
AnswerRe: Connection to MS Access on 64-bit Machines Pin
Martin Stevens25-Aug-09 17:29
Martin Stevens25-Aug-09 17:29 
Questionabout richtextbox in vb6.0 Pin
askhar51625-Aug-09 5:59
askhar51625-Aug-09 5:59 
AnswerRe: about richtextbox in vb6.0 Pin
N a v a n e e t h25-Aug-09 17:14
N a v a n e e t h25-Aug-09 17:14 
GeneralRe: about richtextbox in vb6.0 Pin
askhar51626-Aug-09 4:48
askhar51626-Aug-09 4:48 
QuestionUsing timers in vb 2008 express edition Pin
RyJaBy25-Aug-09 3:27
RyJaBy25-Aug-09 3:27 
AnswerRe: Using timers in vb 2008 express edition Pin
Dave Kreskowiak25-Aug-09 3:49
mveDave Kreskowiak25-Aug-09 3:49 
GeneralRe: Using timers in vb 2008 express edition Pin
RyJaBy25-Aug-09 6:03
RyJaBy25-Aug-09 6:03 
GeneralRe: Using timers in vb 2008 express edition Pin
The Man from U.N.C.L.E.25-Aug-09 6:17
The Man from U.N.C.L.E.25-Aug-09 6:17 

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.