Form Araçları


namespace formUygulaması1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            lblMsj.Text = textBox1.Text;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //label1.Text = "";

            //if (lblMsj.Text != string.Empty)
            if (lblMsj.Text != "")
            {
                listBox1.Items.Add(lblMsj.Text);
            }

            lblMsj.Text = string.Empty;
        }

        private void listBoxItemSil_Click(object sender, EventArgs e)
        {
            listBox1.Items.RemoveAt(listBox1.Items.Count-1);

        }

        private void button3_Click(object sender, EventArgs e)
        {
            textBox1.Text = comboBox1.Text;

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("Görsel Programlama I");
        }

        private void button3_Click_1(object sender, EventArgs e)
        {
            comboBox1.Items.Add(textBox1.Text);
        }
    }
}

results matching ""

    No results matching ""