Admin Admin
Mesaj Sayısı : 72 Kayıt tarihi : 02/12/08
| Konu: İlk C# Uygulamamız ekrana merhaba yazmak Perş. Ara. 04, 2008 12:47 pm | |
| Formumuza bir adet button ve 1 adet textbox ekliyoruz. Daha sonra button un Click yordamını açıyoruz ve bottonun Click ine gerekli kodu yazıyoruz.Ve formu çalıştırdığımız zaman buttonumuza tıklarsak textbox a yazdığımız yazıyı ekrana getirebiliriz. Gerekli kodlar aşağıda verilmiştir. İyi çalışmalar... - Kod:
-
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 merhaba { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) { MessageBox.Show("merhaba "+textBox1.Text); } } } | |
|