Re: How do you get around not having Callbacks?

From: Neil Cowburn (neil_at_online.cowburn.me.uk)
Date: 09/15/04


Date: Wed, 15 Sep 2004 17:51:50 +0100

WithEvents is a VB keyword. The original poster is clearly using C#.

--Neil

"Jon Brunson" <JonBrunson@NOSPAMinnovationsoftwareDOTcoPERIODuk> wrote in
message news:uxGfQOzmEHA.2764@TK2MSFTNGP11.phx.gbl...
> You could create, and raise an event in the DB class, and have the two
> forms declare the db class using the WithEvents keyword, and then update
> the UI from an event method
>
>
>
> M. Said wrote:
>> First, let me start by saying I am new CF.
>>
>> I have a class DB.cs that does Database function. this class has a
>> method called processRecords().
>>
>> I also have 2 forms, F1.cs and F2.cs, both have a button and a progress
>> bar.
>>
>> When I press the button on either form, I would like to execute
>> DB.processRecords() (in a thread if possible - not sure about this yet)
>> and update the UI progressBar in the form that called
>> DB.processRecords().
>>
>> How is this done in CF without using Callbacks? any examples?
>>
>> Thanks in advance.
>>
>> M. Said
>