I need to pass an event from one form to another. Event - the end of the voice recording (it is of the void type). In Program.cs I create a class.
static class SRec { public static void Val {get; set;} } In the form where my recording ends, I write
SRec.Val = wavein.StopRecording(); Gives the error: " Cannot implicity convert type" void "to" void " "
I need this in order to form two in if it was written, as soon as the recording is over, then start the timer. Something like that:
if(SRec.Val = wavein.StopRecording()) { timer1.Enabled = true; } There are no events here, but it is advised to do it through events. How to do it? How to transfer the end of the record to another form? Thank!