private void PictureBox1_Click(object sender, EventArgs e) { FormPrincipal principal = new FormPrincipal(); principal.Show(); pictureBox1.Dispose(); }
private void Detection(object sender, SpeechRecognizedEventArgs e) { foreach (RecognizedWordUnit palabra in e.Result.Words) { label1.Text = palabra.Pronunciation; if (palabra.Pronunciation == "Abrir") { FormPrincipal principal = new FormPrincipal(); principal.Show(); } } }