Click here to Skip to main content
16,005,162 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: MP3 Sound level detection Pin
glaidler10-Mar-03 4:46
glaidler10-Mar-03 4:46 
Generalcould not update, currently locked Pin
mcm4-Mar-03 7:08
mcm4-Mar-03 7:08 
Questionhow to say this in VB? Pin
ns4-Mar-03 5:37
ns4-Mar-03 5:37 
AnswerRe: how to say this in VB? Pin
Ray Cassick4-Mar-03 16:00
Ray Cassick4-Mar-03 16:00 
GeneralChange the mouse pointer on a datagrid column Pin
Grégory4-Mar-03 2:40
Grégory4-Mar-03 2:40 
GeneralSomone please help NullRefrence Error Pin
masta-chief881-Mar-03 18:46
sussmasta-chief881-Mar-03 18:46 
QuestionHelp! How to detect/display full document path? Pin
Anonymous28-Feb-03 9:26
Anonymous28-Feb-03 9:26 
GeneralMultithreading and Event handling Pin
Brynn28-Feb-03 5:38
Brynn28-Feb-03 5:38 
I have a problem, I need to run a series of little tasks. There are only about 4 types of task but they can be run against a number of databases. The exact number of instances of each task are unknown until run time.

I could run all these tasks sequntially but this may take sometime and one or more may fail or timeout extending the runtime to collect all the data.

So the obvious thing is to multithread, dynamically creating the threads and holding them in an array or collection. Most of this seems fairly easy, but the main problem I have is with handling any events e.g. successful termination. I can declare events for the class this is not a problem but to actually handle the event I have to specify a SUB to handle each specific instance .e.g.

Sub TermEventHandler (ByVal intResult as Integer) Handles specific_instance.TermEvent

This is of course impossible as the instance does not exist at compile time.
What I need is a way of having just one SUB to handle all instances of a particular thread types TermEvent.

I'm sure there must be a sensible way of doing this, but being a relative newbie to this I can't see it.

I hope I have explained my problem in terms people can understand.

If anyone could suggest a way out of this I would be grateful. Thanks
GeneralRe: Multithreading and Event handling Pin
Hesham Amin1-Mar-03 0:10
Hesham Amin1-Mar-03 0:10 
GeneralRe: Multithreading and Event handling Pin
Brynn3-Mar-03 22:38
Brynn3-Mar-03 22:38 
General.NET Control in VB6 disappears Pin
Martin Stevenson28-Feb-03 5:23
Martin Stevenson28-Feb-03 5:23 
GeneralVB.NET and XML Pin
pradipta27-Feb-03 19:22
pradipta27-Feb-03 19:22 
QuestionHow to run an .exe app from within a function Pin
nitingonsalves27-Feb-03 7:50
nitingonsalves27-Feb-03 7:50 
AnswerRe: How to run an .exe app from within a function Pin
Jerome Conus27-Feb-03 20:19
Jerome Conus27-Feb-03 20:19 
GeneralRe: How to run an .exe app from within a function Pin
RichardGrimmer13-Mar-03 23:50
RichardGrimmer13-Mar-03 23:50 
GeneralDataGrid BUG? I'm a newbie Pin
Mike Murphy27-Feb-03 4:26
Mike Murphy27-Feb-03 4:26 
GeneralRe: DataGrid BUG? I'm a newbie Pin
Daniel Turini27-Feb-03 9:25
Daniel Turini27-Feb-03 9:25 
GeneralRe: DataGrid BUG? I'm a newbie Pin
Mike Murphy28-Feb-03 6:04
Mike Murphy28-Feb-03 6:04 
GeneralListView Pin
Fleischen27-Feb-03 3:13
Fleischen27-Feb-03 3:13 
GeneralRe: ListView Pin
Jerome Conus27-Feb-03 20:14
Jerome Conus27-Feb-03 20:14 
GeneralAssigning date in VB for Access database Pin
nitingonsalves27-Feb-03 2:48
nitingonsalves27-Feb-03 2:48 
GeneralRe: Assigning date in VB for Access database Pin
lagbolt27-Feb-03 20:50
lagbolt27-Feb-03 20:50 
Generalform unload Pin
r i s h a b h s26-Feb-03 23:44
r i s h a b h s26-Feb-03 23:44 
GeneralRe: form unload Pin
Jerome Conus27-Feb-03 20:23
Jerome Conus27-Feb-03 20:23 
Generalinstance checking Pin
r i s h a b h s26-Feb-03 18:34
r i s h a b h s26-Feb-03 18:34 

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.