🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Burak Kemal KOYUNCU / C# / Kod ile araç oluşturma

1-) C# - Kod ile araç oluşturma

 Button btn = new Button();

            Point btnkonum = new Point(20,30);

            btn.Location = btnkonum;

            btn.Name = "button1";

            btn.Text = "TIKLA";

            btn.BackColor = Color.Red;

            btn.Width = 50;

            btn.Height = 75;

            this.Controls.Add(btn);

            Label lbl = new Label();

            Point lblkonum = new Point(250,25);

            lbl.Location = lblkonum;

            lbl.Name = "Label1";

            lbl.Text = "Merhaba";

            lbl.BackColor = Color.Red;

            this.Controls.Add(lbl);

            

            

 

            for (int i = 0; i <=5; i++)

            {

                TextBox txt = new TextBox();

                Point txtkonum = new Point(350, i * 30);

                txt.Location = txtkonum;

                txt.Name = "textbox" + i;

                txt.Text = i.ToString();

                this.Controls.Add(txt);

            }

 2021 Ocak 21 Perşembe
 391