11 Aralık 2014 Perşembe

C# Kod ile oluşturulan butona görev atama kodları

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_buton_gorevi
{
public partial class Form1 : Form
{
public Form1()
{

InitializeComponent();
}
private void yaz (object sender,System.EventArgs e)
{
label1.Text = "...Buton tıklandı...";
}
private void Form1_Load(object sender, EventArgs e)
{
Button d = new Button();

d.Top = 50;

d.Left = 70;

d.Width = 100;

d.Text = "Buton1";

d.Click += new EventHandler(yaz);

this.Controls.Add(d);

}
}
}
Paylaş:

0 yorum:

Yorum Gönder

Popüler

Son

Kategoriler

Arşiv