From the main from i have
C# Code:
public bool Talk = false; private void CB_TALK_CheckedChanged(object sender, EventArgs e) { Talk = CB_TALK.Checked; }
basicly to check the box switch the bool.
from my user control
c# Code:
SpeechSynthesizer Voice = new SpeechSynthesizer(); private void TB_C_Enter(object sender, EventArgs e) { if (Form1.Talk) { Voice.SpeakAsyncCancelAll(); Control C = new Control(); C = (Control)sender; Voice.SpeakAsync(LBL_Name.Text + " " + C.Tag); } }
However I can't seem to get the Usercontrl to access the Talk variable.
anyone got any idea what i'm forgetting?




Reply With Quote