Returning values from class to parent form

Wirloff

Member
Joined
Mar 2, 2005
Messages
19
Location
Belgium
Programming Experience
1-3
Hi,
This might be an easy problem but I just don't know how to solve it.
I'll give you an example

I have a form (ex: theForm) with a button (Btn) and a statusbar (pBar1).
On pressing Btn, the class DoTheMath is called and has to process about 10000 lines . After each 100 lines processed DoTheMath calls "increaseProgress". I want the statusbar in TheForm to increase his value. But how does DoTheMath now witch form called him?

I have made the method increaseProgress in theForm. But I can't use theForm = new Form in class DoTheMath or otherwise he just starts a new form and uses that progressbar

Is there something like
"parent.increaseProgress"???

Thanks
 
Top Bottom