Arama butonu
Bu konudaki kullanıcılar: 1 misafir
2
Cevap
629
Tıklama
0
Öne Çıkarma
c# yardım
S
14 yıl
Teğmen
Konu Sahibi

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



M
14 yıl
Yüzbaşı

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


bunun sonunda ";" olması gerekmez mi


Bu mesaja 1 cevap geldi.
W
14 yıl
Yarbay

text ve label'ların bazıları hatalı.



DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.