Thread threadKayitSorgu;
ThreadStart threadKayitSorguBaslat;
public Form1()
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
}
private void sorgula()
{
threadKayitSorguBaslat = new ThreadStart(kayitSorgu);
threadKayitSorgu = new Thread(threadKayitSorguBaslat);
threadKayitSorgu.Start();
}
private void button1_Click(object sender, EventArgs e)
{
button1.Enabled = false;
sorgula();
}
protected void kayitSorgu()
{
........
ThreadStart threadKayitSorguBaslat;
public Form1()
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
}
private void sorgula()
{
threadKayitSorguBaslat = new ThreadStart(kayitSorgu);
threadKayitSorgu = new Thread(threadKayitSorguBaslat);
threadKayitSorgu.Start();
}
private void button1_Click(object sender, EventArgs e)
{
button1.Enabled = false;
sorgula();
}
protected void kayitSorgu()
{
........
Yorumlar