Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (isEmpty())
            {
                FnametextBox4.Enabled = false;
                fnamelabel3.Text      = FnametextBox4.Text;
                SnametextBox3.Enabled = false;
                Snamelabel3.Text      = SnametextBox3.Text;

                FirsttextBox1.Enabled  = true;
                SecondtextBox2.Enabled = true;
                FirsttextBox1.Focus();
            }
        }
Ejemplo n.º 2
0
        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                listBox1.Items.Add(FnametextBox4.Text + ":  " + FirsttextBox1.Text);

                string s = timelabel4.Text = DateTime.Now.ToLongTimeString();
                listBox1.Items.Add(s);

                FirsttextBox1.Clear();
                FirsttextBox1.Focus();
                //textBox2.Text = textBox1.Text;
            }
        }