コード例 #1
0
        public void OnbtnResetClick(object sender, System.EventArgs e)
        {
            play_position.Minimum      = 0;
            this.play_position.Maximum = Editor.Text.Length - 1;
            // this.play_position.Value =0;
            //  MessageBox.Show(Editor.Text.Length.ToString());
            if (btnReset.Text == "STOP")
            {
                char_no       = Editor.Text.Length + 1;
                btnReset.Text = "READ";
            }
            else if (btnReset.Text == "READ")
            {
                btnReset.Text = "STOP";

                BODY   mt      = new BODY();
                Thread newThrd = new Thread(this.SPEAK);
                // Finally, start execution of the thread.

                newThrd.Start(this.Editor.Text);
            }
            //    MessageBox.Show("play_position.Value.ToString()");
        }
        public void OnbtnResetClick(object sender, System.EventArgs e)
        {
            play_position.Minimum = 0;
            this.play_position.Maximum = Editor.Text.Length - 1;
            // this.play_position.Value =0;
            //  MessageBox.Show(Editor.Text.Length.ToString());
            if (btnReset.Text == "STOP")
            {
                char_no = Editor.Text.Length + 1;
                btnReset.Text = "READ";
            }
            else if (btnReset.Text == "READ")
            {
                btnReset.Text = "STOP";

                BODY mt = new BODY();
                Thread newThrd = new Thread(this.SPEAK);
                // Finally, start execution of the thread.

                newThrd.Start(this.Editor.Text);
            }
            //    MessageBox.Show("play_position.Value.ToString()");
        }