Kod:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;
namespace accescontrycomd
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
OleDbConnection baglanti = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=bgdos.accdb");
OleDbCommand komut = new OleDbCommand();
DataTable tablo = new DataTable("bgtab");
private **** button3_Click(object sender, EventArgs e)
{
Application.Exit();
}
private **** Form1_Load(object sender, EventArgs e)
{
dataGridView1.Hide();
button4.Hide();
OleDbDataAdapter alıcı = new OleDbDataAdapter("Select * From bgtab", baglanti);
alıcı.Fill(tablo);
dataGridView1.DataSource = tablo;
baglanti.Open();
komut.Connection = baglanti;
komut.CommandText = "INSERT INTO bgtab (AdSoyad,Sınıf,Numara,PuanTürü,BölümAdı,Okul,Dipnot) VALUES ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "','" + textBox7.Text + "')";
komut.ExecuteNonQuery();
baglanti.Close();
this.AcceptButton = button1;
this.CancelButton = button3;
}
private **** button2_Click(object sender, EventArgs e)
{
dataGridView1.Show();
button4.Show();
}
private **** button2_TextChanged(object sender, EventArgs e)
{
}
private **** button4_Click(object sender, EventArgs e)
{
dataGridView1.Hide();
}
private **** textBox6_TextChanged(object sender, EventArgs e)
{
}
}
}
bi yardım edin lütfen 1 saattir urasıyorum düzeltmeye..:RpS_blink: