audio - how to access wave viewer from another form in c#? -
i have 2 win forms. 1 form1.cs , other 1 record.cs in form1.cs have 2 wave viewers. when opened wave file form1, waveviewer1 showing wave nicely. in record.cs form i'm recording new wave , save it. after clicking stop button want show recorded file's wave in form1's wavewviewer2. how should that?? have tried lot.
form1.cs open button code.
private void openbutton_click(object sender, eventargs e) { openfiledialog filedlg = new openfiledialog(); if (filedlg.showdialog() == dialogresult.ok) { wavecontrol1.filename = filedlg.filename; wavecontrol1.read(); } }//this working fine.
Comments
Post a Comment