Şimdi Ara

c# yardım

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
1 Misafir - 1 Masaüstü
5 sn
3
Cevap
0
Favori
629
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace Form1
    {


    public class Form1:System.Windows.Forms.Form
    {
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.Button button2;
    private System.Windows.Forms.Button button3;
    private System.Windows.Forms.Button button4;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.TextBox deger1;
    private System.Windows.Forms.TextBox deger2;
    private System.Windows.Forms.TextBox sonuc;
    private System.Windows.Forms.Label isaret;



    }

    public void InitializeForm()
    {


    this.deger2= new System.Windows.Forms.Textbox();
    this.sonuc= new System.Windows.Forms.Textbox();
    this.button2= new System.Windows.Forms.Button();
    this.isaret= new System.Windows.Forms.Label();
    this.label2= new System.Windows.Forms.Label();
    this.SuspendLayout();

    this.deger1.Location= new System.Drawing.Point(16,8);
    this.deger1.Name="deger1";
    this.deger1.TabIndex=0;
    this.deger1.Text"0";


    this.name="Form1";
    this.text="Hesap Makinasi";
    this.BackColor=System.Drawing.Color.FromArgb(((System.Byte)255)),((System.Byte)(128)),((System.Byte)(0))))
    this.ClientSize= new System.Drawing.Size(400,149);
    }
    this.button4.Click += new System.EventHandler(this.button4_Click);
    private void button4_Click(object sender, System.EventArgs e )
    {
    isaret.Text="/";
    sonuc.Text=System.Convert.ToString(System.Convert.ToInt32(deger1.Text)/System.Convert.ToInt32(deger2.Text));
    }







    }








    nerde hata var hesap makinemde acaba







  • this.BackColor=System.Drawing.Color.FromArgb(((System.Byte)255)),((System.Byte)(128)),((System.Byte)(0)))) 


    bunun sonunda ";" olması gerekmez mi
  • text ve label'ların bazıları hatalı.
  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.