2
Answers

Accessing Form objects in delegate function

Hey

I got a delegate function called like below
AudioDelegate AD = new AudioDelegate(this.Audio);
SetCallBack_Audio(AD)
GCHandle gAD = GCHandle.Alloc(AD);

void Audio()
{
    //alot of stuff
    this.txtStatus.text = "Recording"; // no work
    messagebox.show("Recording"); // works
}

im doing the above but when the Audio event is fired i cant change the text of txtStatus at all, dont get an error message or anything, but the messagebox does work.

any idea's on how to fix this. im no c# boff so keep that in mind ;) might be something silly
Answers (2)
Next Recommended Forum