Kod ile Textbox Oluşturma C#

Kod ile Textbox Oluşturma C#

**  Form1 yüklendiğinde belirtilen boyutta , belirtilen koordinata textbox oluşturulur.

[code lang=”csharp”]using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace kodla_olusturulan_butona_islem_yaptırma

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

private void Form1_Load(object sender, EventArgs e)

{

TextBox textbox = new TextBox ();
textbox.Top = 50;
textbox.Left = 70;
textbox.Width = 100;
textbox.Text = "textbox";

this.Controls.Add(textbox);

}

}

}

[/code]

Dersin videolu anlatımı ve anlatımda yapılan projeyi indirmek için

Tıklayınız

Yorumlar 5

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir