Kuaför Takip Programı C#

Kuaför Takip Programı C#

Bu ve benzeri takip programlar veya bu programa artı özellikler ekletmek istiyorsanız gorselprogram@gmail.com adresine mail atın.

FORM1 İçerisine Yazılacak Kodlar…

[code language=”CSharp”]
public partial class Form1 : Form
{
public Form2 frm2;
public Form3 frm3;
public Form4 frm4;
public Form5 frm5;
public Form6 frm6;
public Form1()
{
InitializeComponent();
frm2 = new Form2();
frm3 = new Form3();
frm5 = new Form5();
frm4 = new Form4();
frm6 = new Form6();
frm2.frm1 = this;
frm3.frm1 = this;
frm5.frm1 = this;
frm4.frm1 = this;
frm6.frm1 = this;
}

private void button1_Click(object sender, EventArgs e)
{
frm2.ShowDialog();
}

private void button2_Click(object sender, EventArgs e)
{
frm3.ShowDialog();
}

private void button3_Click(object sender, EventArgs e)
{
frm5.ShowDialog();
}

private void button4_Click(object sender, EventArgs e)
{
frm6.ShowDialog();
}
}
[/code]

FORM2 İçerisine Yazılacak Kodlar…

[code language=”CSharp”]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication21
{
public partial class Form2 : Form
{
public Form1 frm1;
public Form2()
{
InitializeComponent();
}
public OleDbConnection bag = new OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=data.mdb");
public OleDbCommand kmt = new OleDbCommand();
public OleDbDataAdapter adtr = new OleDbDataAdapter();
public DataSet dtst = new DataSet();
public Boolean durum = false;
public void listele()
{
bag.Open();
OleDbDataAdapter adtr = new OleDbDataAdapter("Select * From personel", bag);
adtr.Fill(dtst, "personel");
dataGridView1.DataSource = dtst.Tables["personel"];
adtr.Dispose();
bag.Close();
}
public void nokontrol()
{
durum = false;
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "Select sicil_no,tc_kimlik from personel";
OleDbDataReader oku;
oku = kmt.ExecuteReader();
while (oku.Read())
{

if (textBox1.Text == oku[0].ToString() || textBox2.Text == oku[1].ToString()) durum = true;

}
bag.Close();
oku.Dispose();
}

private void Form2_Load(object sender, EventArgs e)
{
listele();
dataGridView1.Columns[0].HeaderText = "Sicil No";
dataGridView1.Columns[1].HeaderText = "Tc Kimlik";
dataGridView1.Columns[2].HeaderText = "Ad";
dataGridView1.Columns[3].HeaderText = "Soyad";
dataGridView1.Columns[4].HeaderText = "Cep Telefon";
dataGridView1.Columns[5].HeaderText = "Ev Telefon";
dataGridView1.Columns[6].HeaderText = "Doğum Tarihi";
dataGridView1.Columns[7].HeaderText = "Adres";
dataGridView1.Columns[0].Width = 30;
dataGridView1.Columns[1].Width = 95;
dataGridView1.Columns[2].Width = 90;
dataGridView1.Columns[3].Width = 90;
dataGridView1.Columns[4].Width = 90;
dataGridView1.Columns[5].Width = 90;
dataGridView1.Columns[6].Width = 95;
dataGridView1.Columns[7].Width = 120;
}

private void button3_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
textBox4.Text = "";
maskedTextBox1.Text = "";
maskedTextBox2.Text = "";
maskedTextBox3.Text = "";
textBox5.Text = "";
}

private void button1_Click(object sender, EventArgs e)
{
nokontrol();
if (durum == false)
{
if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "")
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "INSERT INTO personel(sicil_no,tc_kimlik,ad,soyad,cep_telefon,ev_telefon,dogum_tarihi,adres)VALUES(‘" + textBox1.Text + "’,’" + textBox2.Text + "’,’" + textBox3.Text + "’,’" + textBox4.Text + "’,’" + maskedTextBox1.Text + "’,’" + maskedTextBox2.Text + "’,’" + maskedTextBox3.Text + "’,’" + textBox5.Text + "’)";
kmt.ExecuteNonQuery();
kmt.Dispose();
bag.Close();
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls[i] is TextBox) this.Controls[i].Text = "";
if (this.Controls[i] is ComboBox) this.Controls[i].Text = "";
}
dtst.Tables["personel"].Clear();
listele();
MessageBox.Show("Kayıt işlemi tamamlandı !");
}
else MessageBox.Show("Boş alanları doldurunuz !");
}
else MessageBox.Show("Kayıtlı Sicil No veya Tc Kimlik Girdiniz !");
}

private void button2_Click(object sender, EventArgs e)
{
string silinecek;
try
{
int row = 0;
for (row = 0; row <= dataGridView1.Rows.Count; row++)
{

if (dataGridView1.Rows[row].Cells[0].Selected == true || dataGridView1.Rows[row].Cells[1].Selected == true || dataGridView1.Rows[row].Cells[2].Selected == true || dataGridView1.Rows[row].Cells[3].Selected == true || dataGridView1.Rows[row].Cells[4].Selected == true || dataGridView1.Rows[row].Cells[5].Selected == true || dataGridView1.Rows[row].Cells[6].Selected == true || dataGridView1.Rows[row].Cells[7].Selected == true)
{
break;

}
}
silinecek = dataGridView1.Rows[row].Cells[0].Value.ToString();

DialogResult cevap;
cevap = MessageBox.Show("Kaydı silmek istediğinizden eminmisiniz", "Uyarı", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (cevap == DialogResult.Yes)
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "DELETE from personel WHERE sicil_no=’" + silinecek + "’";
kmt.ExecuteNonQuery();
kmt.Dispose();
bag.Close();
dtst.Tables["personel"].Clear();
listele();
}
}
catch
{ ;}
}

private void txtAdAra_TextChanged(object sender, EventArgs e)
{
OleDbDataAdapter adtr = new OleDbDataAdapter("select * From personel",bag);
if (txtAdAra.Text == "")
{
kmt.Connection = bag;
kmt.CommandText = "Select * from personel";
adtr.SelectCommand = kmt;
adtr.Fill(dtst, "personel");
}
if (Convert.ToBoolean(bag.State) == false)
{
bag.Open();
}
adtr.SelectCommand.CommandText = " Select * From personel" +
" where(ad like ‘%" + txtAdAra.Text + "%’ )";
dtst.Tables["personel"].Clear();
adtr.Fill(dtst, "personel");
bag.Close();
}

private void txtSoyadAra_TextChanged(object sender, EventArgs e)
{
OleDbDataAdapter adtr = new OleDbDataAdapter("select * From personel", bag);
if (txtSoyadAra.Text == "")
{
kmt.Connection = bag;
kmt.CommandText = "Select * from personel";
adtr.SelectCommand = kmt;
adtr.Fill(dtst, "personel");
}
if (Convert.ToBoolean(bag.State) == false)
{
bag.Open();
}
adtr.SelectCommand.CommandText = " Select * From personel" +
" where(soyad like ‘%" + txtSoyadAra.Text + "%’ )";
dtst.Tables["personel"].Clear();
adtr.Fill(dtst, "personel");
bag.Close();
}

private void txtSicilAra_TextChanged(object sender, EventArgs e)
{
OleDbDataAdapter adtr = new OleDbDataAdapter("select * From personel", bag);
if (txtSicilAra.Text == "")
{
kmt.Connection = bag;
kmt.CommandText = "Select * from personel";
adtr.SelectCommand = kmt;
adtr.Fill(dtst, "personel");
}
if (Convert.ToBoolean(bag.State) == false)
{
bag.Open();
}
adtr.SelectCommand.CommandText = " Select * From personel" +
" where(sicil_no like ‘%" + txtSicilAra.Text + "%’ )";
dtst.Tables["personel"].Clear();
adtr.Fill(dtst, "personel");
bag.Close();

}

private void button4_Click(object sender, EventArgs e)
{
dtst.Clear();
listele();
}

private void textBox2_TextChanged(object sender, EventArgs e)
{
if (textBox2.Text.Length > 10 &amp;amp; textBox2.Text.Length < 12)
MessageBox.Show("T.C Kimlik Numarası 11 den Küçük veya Büyük Olamaz");
}

private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox3_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox5_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void button5_Click(object sender, EventArgs e)
{
this.Close();
}

}
}

[/code]

Bu ve benzeri takip programlar veya bu programa artı özellikler ekletmek istiyorsanız gorselprogram@gmail.com adresine mail atın.

FORM3 İçerisine Yazılacak Kodlar…

[code language=”CSharp”]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication21
{
public partial class Form3 : Form
{
public Form1 frm1;
public Form3()
{
InitializeComponent();
}
public OleDbConnection bag = new OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=data.mdb");
public OleDbCommand kmt = new OleDbCommand();
public OleDbDataAdapter adtr = new OleDbDataAdapter();
public DataSet dtst = new DataSet();
public Boolean durum = false;

public void uyelistele()
{
bag.Open();
OleDbDataAdapter adtr = new OleDbDataAdapter("Select * From kisi", bag);
adtr.Fill(dtst, "kisi");
dataGridView1.DataSource = dtst.Tables["kisi"];
adtr.Dispose();
dtst.Clear();
bag.Close();
}

public void combo()
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "Select * From uygulama";
OleDbDataReader oku;
oku = kmt.ExecuteReader();
while (oku.Read())
{
comboBox1.Items.Add(oku[0].ToString());

}
bag.Close();
oku.Dispose();
dtst.Clear();
comboBox1.Sorted = true;
}
public void musnokontrol()
{
durum = false;
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "Select musteri_no from kisi";
OleDbDataReader oku;
oku = kmt.ExecuteReader();
while (oku.Read())
{

if (textBox1.Text == oku[0].ToString()) durum = true;

}
bag.Close();
oku.Dispose();
}

private void Form3_Load(object sender, EventArgs e)
{

uyelistele();
dataGridView1.Columns[0].HeaderText = "Müşteri No";
dataGridView1.Columns[1].HeaderText = "Ad";
dataGridView1.Columns[2].HeaderText = "Soyad";
dataGridView1.Columns[3].HeaderText = "Cep Telefon";
dataGridView1.Columns[4].HeaderText = "Ev Telefon";
dataGridView1.Columns[5].HeaderText = "İş Telefon";
dataGridView1.Columns[6].HeaderText = "E_mail";
dataGridView1.Columns[7].HeaderText = "Adres";
combo();

}

private void button3_Click(object sender, EventArgs e)
{
frm1.frm4.Show();

}

private void button4_Click(object sender, EventArgs e)
{
musnokontrol();
if (durum == false)
{
if (textBox1.Text != "" &amp;amp;&amp;amp; textBox2.Text != "" &amp;amp;&amp;amp; textBox3.Text != "")
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "INSERT INTO kisi(musteri_no,ad,soyad,cep_telefon,ev_telefon,is_telefon,e_mail,adres)VALUES(‘" + textBox1.Text + "’,’" + textBox2.Text + "’,’" + textBox3.Text + "’,’" + maskedTextBox1.Text + "’,’" + maskedTextBox2.Text + "’,’" + maskedTextBox3.Text + "’,’" + textBox7.Text + "’,’" + textBox8.Text + "’)";
kmt.ExecuteNonQuery();
kmt.Dispose();
bag.Close();
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls[i] is TextBox) this.Controls[i].Text = "";
if (this.Controls[i] is ComboBox) this.Controls[i].Text = "";
}
dtst.Tables["kisi"].Clear();
uyelistele();
MessageBox.Show("Kayıt işlemi tamamlandı !");
}
else MessageBox.Show("Boş alanları doldurunuz !");
}
else MessageBox.Show("Kayıtlı Müşteri No Girdiniz !");
}

private void button5_Click(object sender, EventArgs e)
{
string silinecek;
try
{
int row = 0;
for (row = 0; row <= dataGridView1.Rows.Count; row++)
{

if (dataGridView1.Rows[row].Cells[0].Selected == true || dataGridView1.Rows[row].Cells[1].Selected == true || dataGridView1.Rows[row].Cells[2].Selected == true || dataGridView1.Rows[row].Cells[3].Selected == true || dataGridView1.Rows[row].Cells[4].Selected == true || dataGridView1.Rows[row].Cells[5].Selected == true || dataGridView1.Rows[row].Cells[6].Selected == true || dataGridView1.Rows[row].Cells[7].Selected == true)
{
break;

}
}
silinecek = dataGridView1.Rows[row].Cells[0].Value.ToString();

DialogResult cevap;
cevap = MessageBox.Show("Kaydı silmek istediğinizden eminmisiniz", "Uyarı", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (cevap == DialogResult.Yes)
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "DELETE from kisi WHERE musteri_no=’" + silinecek + "’";
kmt.ExecuteNonQuery();
kmt.Dispose();
bag.Close();
dtst.Tables["kisi"].Clear();
uyelistele();
}
}
catch
{ ;}
}

private void button7_Click(object sender, EventArgs e)
{
this.Close();
}

private void button6_Click(object sender, EventArgs e)
{
dtst.Clear();
uyelistele();
}

private void txtAdAra_TextChanged(object sender, EventArgs e)
{
OleDbDataAdapter adtr = new OleDbDataAdapter("select * From kisi",bag);
if (txtAdAra.Text == "")
{
kmt.Connection = bag;
kmt.CommandText = "Select * from kisi";
adtr.SelectCommand = kmt;
adtr.Fill(dtst, "kisi");
}
if (Convert.ToBoolean(bag.State) == false)
{
bag.Open();
}
adtr.SelectCommand.CommandText = " Select * From kisi" +
" where(ad like ‘%" + txtAdAra.Text + "%’ )";
dtst.Tables["kisi"].Clear();
adtr.Fill(dtst, "kisi");
bag.Close();
}

private void txtSoyadAra_TextChanged(object sender, EventArgs e)
{
OleDbDataAdapter adtr = new OleDbDataAdapter("select * From kisi", bag);
if (txtSoyadAra.Text == "")
{
kmt.Connection = bag;
kmt.CommandText = "Select * from kisi";
adtr.SelectCommand = kmt;
adtr.Fill(dtst, "kisi");
}
if (Convert.ToBoolean(bag.State) == false)
{
bag.Open();
}
adtr.SelectCommand.CommandText = " Select * From kisi" +
" where(soyad like ‘%" + txtSoyadAra.Text + "%’ )";
dtst.Tables["kisi"].Clear();
adtr.Fill(dtst, "kisi");
bag.Close();
}

private void txtMusAra_TextChanged(object sender, EventArgs e)
{
OleDbDataAdapter adtr = new OleDbDataAdapter("select * From kisi", bag);
if (txtMusAra.Text == "")
{
kmt.Connection = bag;
kmt.CommandText = "Select * from kisi";
adtr.SelectCommand = kmt;
adtr.Fill(dtst, "kisi");
}
if (Convert.ToBoolean(bag.State) == false)
{
bag.Open();
}
adtr.SelectCommand.CommandText = " Select * From kisi" +
" where(musteri_no like ‘%" + txtMusAra.Text + "%’ )";
dtst.Tables["kisi"].Clear();
adtr.Fill(dtst, "kisi");
bag.Close();

}

private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "Bitmap Dosyaları (*.bmp)|*.bmp|Jpeg Dosyaları (*.jpg)|*.jpg";
if (DialogResult.OK == openFileDialog1.ShowDialog())
{
pictureBox1.Image = Image.FromFile(openFileDialog1.FileName);

}
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox3_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox7_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox8_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}
}

}
[/code]

Bu ve benzeri takip programlar veya bu programa artı özellikler ekletmek istiyorsanız gorselprogram@gmail.com adresine mail atın.

FORM4 İçerisine Yazılacak Kodlar…

[code language=”CSharp”]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication21
{
public partial class Form4 : Form
{
public Form1 frm1;
public Form4()
{
InitializeComponent();
}

private void button3_Click(object sender, EventArgs e)
{
this.Close();
}

private void button1_Click(object sender, EventArgs e)
{
Form3 frm3 = new Form3();
frm3.textBox1.Text = textBox1.Text;
frm3.textBox2.Text = textBox2.Text;
frm3.textBox3.Text = textBox3.Text;
frm3.maskedTextBox3.Text = maskedTextBox1.Text;
frm3.maskedTextBox1.Text = maskedTextBox2.Text;
frm3.maskedTextBox2.Text = maskedTextBox3.Text;
frm3.textBox7.Text = textBox4.Text;
frm3.textBox8.Text = textBox5.Text;
frm3.ShowDialog();
this.Hide();

}

private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
maskedTextBox1.Clear();
maskedTextBox2.Clear();
maskedTextBox3.Clear();
textBox4.Clear();
textBox5.Clear();

}

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox3_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}

private void textBox5_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &amp;amp;&amp;amp; (e.KeyChar) != (char)08)
e.Handled = true;
}
}
}

[/code]

Bu ve benzeri takip programlar veya bu programa artı özellikler ekletmek istiyorsanız gorselprogram@gmail.com adresine mail atın.

FORM5 İçerisine Yazılacak Kodlar…

[code language=”CSharp”]
public partial class Form5 : Form
{
public Form1 frm1;
public Form5()
{
InitializeComponent();
}
public OleDbConnection bag = new OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=data.mdb");
public OleDbCommand kmt = new OleDbCommand();
public OleDbDataAdapter adtr = new OleDbDataAdapter();
public DataSet dtst = new DataSet();
public void combo()
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "Select * From fiyat_listesi";
OleDbDataReader oku;
oku = kmt.ExecuteReader();
while (oku.Read())
{
comboBox1.Items.Add(oku[0].ToString());

}
bag.Close();
oku.Dispose();
comboBox1.Sorted = true;
}
private void Form5_Load(object sender, EventArgs e)
{
combo();
}
}
[/code]

FORM6 İçerisine Yazılacak Kodlar…

[code language=”CSharp”]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication21
{
public partial class Form6 : Form
{
public Form1 frm1;
public Form6()
{
InitializeComponent();
}
public OleDbConnection bag = new OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=data.mdb");
public OleDbCommand kmt = new OleDbCommand();
public OleDbDataAdapter adtr = new OleDbDataAdapter();
public DataSet dtst = new DataSet();
public void combo()
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "Select * From cilt_gorunumu";
OleDbDataReader oku;
oku = kmt.ExecuteReader();
while (oku.Read())
{
comboBox1.Items.Add(oku[0].ToString());

}
bag.Close();
oku.Dispose();
comboBox1.Sorted = true;
}

public void combo2()
{
bag.Open();
kmt.Connection = bag;
kmt.CommandText = "Select * From cilt_yapisi";
OleDbDataReader oku;
oku = kmt.ExecuteReader();
while (oku.Read())
{
comboBox2.Items.Add(oku[0].ToString());

}
bag.Close();
oku.Dispose();
comboBox1.Sorted = true;
}
private void Form6_Load(object sender, EventArgs e)
{
combo();
combo2();
textBox1.Visible = false;
textBox2.Visible = false;
textBox3.Visible = false;
textBox4.Visible = false;
textBox5.Visible = false;
textBox6.Visible = false;
textBox7.Visible = false;
textBox8.Visible = false;
textBox9.Visible = false;

}

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
switch (comboBox1.SelectedIndex)
{
case 0:
{
textBox1.Visible = false;
textBox2.Visible = true;
textBox3.Visible = false;
textBox4.Visible = false;
break;
}
case 1:
{
textBox2.Visible = false;
textBox1.Visible = false;
textBox3.Visible = true;
textBox4.Visible = false;
break;
}
case 2:
{
textBox3.Visible = false;
textBox2.Visible = false;
textBox1.Visible = true;
textBox4.Visible = false;
break;
}
case 3:
{
textBox4.Visible = true;
textBox2.Visible = false;
textBox3.Visible = false;
textBox1.Visible = false;
break;
}
}
}

private void textBox9_TextChanged(object sender, EventArgs e)
{

}

private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
switch (comboBox2.SelectedIndex)
{
case 0:
{
textBox5.Visible = true;
textBox6.Visible = false;
textBox7.Visible = false;
textBox8.Visible = false;
textBox9.Visible = false;

break;
}
case 1:
{
textBox6.Visible = true;
textBox5.Visible = false;
textBox7.Visible = false;
textBox8.Visible = false;
textBox9.Visible = false;

break;
}
case 2:
{
textBox7.Visible = true;
textBox6.Visible = false;
textBox5.Visible = false;
textBox8.Visible = false;
textBox9.Visible = false;

break;
}
case 3:
{
textBox8.Visible = true;
textBox7.Visible = false;
textBox6.Visible = false;
textBox5.Visible = false;
textBox9.Visible = false;

break;
}
case 4:
{
textBox9.Visible = true;
textBox8.Visible = false;
textBox7.Visible = false;
textBox6.Visible = false;
textBox5.Visible = false;
break;

}

}
}
}
}
[/code]

Bu ve benzeri takip programlar veya bu programa artı özellikler ekletmek istiyorsanız gorselprogram@gmail.com adresine mail atın.

Projeyi İNDİR 2008

Projeyi İNDİR 2010

Yorumlar 7

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir