C# CS 1513 ve CS 1002 hatası

şimal06

Femtopat
Katılım
1 Mayıs 2021
Mesajlar
29
Daha fazla  
Cinsiyet
Kadın
Hatalar.png
 
CS1002 = Derleyici eksik bir noktalı virgül algıladı. C# içindeki her deyimin sonunda noktalı virgül gereklidir. Bir ifade, birden fazla satıra yayılabilir.
CS1513 = Derleyici, bulunamayan bir kapatma küme ayracı ( } ) bekliyordu.
İki sorunda satır 53.den kaynaklı.
 
Hocam siz komple kodu atın. Ben düzelteyim.
/*
* Created by SharpDevelop.
* User: user
* Date: 30.04.2021
* Time: 22:43
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace MainForm
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class uygulama : Form
{
public uygulama()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();

//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void buton1_click(object sender, EventArgs e)
{
string metin =maskedTextBox1.Text;
listBox1.Items.Add(metin);

}
void buton2_click(object sender, EventArgs e)
{

}
void buton3_click(object sender, EventArgs e)
{

}
void buton4_click(object sender, EventArgs e)
{

}
void buton5_click(object sender, EventArgs e)
{

}
void buton6_click(object sender, EventArgs e)
 
Buyurun.

C#:
/*
* Created by SharpDevelop.
* User: user
* Date: 30.04.2021
* Time: 22:43
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace MainForm
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class uygulama : Form{
public uygulama(){
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();

//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void buton1_click(object sender, EventArgs e){
    string metin = maskedTextBox1.Text;
    listBox1.Items.Add(metin);

}
void buton2_click(object sender, EventArgs e){ }
void buton3_click(object sender, EventArgs e){ }
void buton4_click(object sender, EventArgs e){ }
void buton5_click(object sender, EventArgs e){ }
void buton6_click(object sender, EventArgs e){ }

}
}
 
Buyurun.

C#:
/*
* Created by SharpDevelop.
* User: user
* Date: 30.04.2021
* Time: 22:43
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace MainForm
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class uygulama : Form{
public uygulama(){
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();

//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void buton1_click(object sender, EventArgs e){
    string metin = maskedTextBox1.Text;
    listBox1.Items.Add(metin);

}
void buton2_click(object sender, EventArgs e){ }
void buton3_click(object sender, EventArgs e){ }
void buton4_click(object sender, EventArgs e){ }
void buton5_click(object sender, EventArgs e){ }
void buton6_click(object sender, EventArgs e){ }

}
}
çok teşekkür ederim
 

Geri
Yukarı