Cep Telefonu C#

Cep Telefonu C#.NET (C.NET)…

fenerfener2

[code language=”VB.NET”]
//FORM1
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form2 frm2=new Form2();

if ((int.Parse(textBox2.Text)) == 1907)
{
frm2.Show();
this.Hide();
} else
{

MessageBox.Show("Yanlış Şifre ");
}
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = string.Format("{0:t}", DateTime.Now);

}
}
//FORM2
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}

private void button3_Click(object sender, EventArgs e)
{
Form6 frm6 = new Form6();
frm6.Show();
this.Hide();
}

private void button1_Click(object sender, EventArgs e)
{
Form3 frm3 = new Form3();
frm3.Show();
this.Hide();
}

private void button2_Click(object sender, EventArgs e)
{
Form4 frm4 = new Form4();
frm4.Show();
this.Hide();
}

private void button4_Click(object sender, EventArgs e)
{
Form8 frm8 = new Form8();
frm8.Show();
this.Hide();
}

private void button6_Click(object sender, EventArgs e)
{
Form10 frm10 = new Form10();
frm10.Show();
this.Hide();
}

private void button5_Click(object sender, EventArgs e)
{

}

private void button6_Click_1(object sender, EventArgs e)
{
SoundPlayer player = new SoundPlayer();
string path = "C:windowsmediading.wav";
player.SoundLocation = path;
player.Play(); //play it

}
private void button6_Click_2(object sender, EventArgs e)
{
Form16 frm16 = new Form16();
frm16.Show();
this.Hide();
}

private void button5_Click_1(object sender, EventArgs e)
{
Form1 frm1 = new Form1();
frm1.Show();
this.Hide();

}
}
//FORM3
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}

private void button3_Click(object sender, EventArgs e)
{

listBox1.Items.Remove(listBox1.Text);
listBox1.Items.Add(textBox1.Text);
listBox2.Items.Remove(listBox2.Text);
listBox2.Items.Add(textBox2.Text);
}

private void button1_Click(object sender, EventArgs e)
{

double x;
x = Convert.ToDouble(textBox2.Text);
textBox2.Text = x.ToString(" (###) ### ## ## ");

listBox1.Items.Add(textBox1.Text);
listBox2.Items.Add(textBox2.Text);

textBox1.Text=" ";
textBox2.Text = " ";

}

private void button2_Click(object sender, EventArgs e)
{

listBox2.Items.Remove(listBox2.Text);
listBox1.Items.Remove(listBox1.Text);

}

private void button4_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
this.Hide();
}
}
//FORM4
public partial class Form4 : Form
{
public Form4()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form11 frm11 = new Form11();
frm11.Show();
this.Hide();
}

private void button2_Click(object sender, EventArgs e)
{
Form5 frm5 = new Form5();
frm5.Show();
this.Hide();
}

private void button3_Click(object sender, EventArgs e)
{
Form12 frm12=new Form12();
frm12.Show();
this.Hide();
}

private void button4_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
this.Hide();
}
}
//FORM5
public partial class Form5 : Form
{

public Form5()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
}

private void Form5_Load(object sender, EventArgs e)
{

}

private void timer1_Tick(object sender, EventArgs e)
{

if (pictureBox1.Right <= panel1.Left &amp;&amp; pictureBox2.Right <= panel1.Left &amp;&amp; pictureBox3.Right <= panel1.Left &amp;&amp; pictureBox4.Right <= panel1.Left)
{

Random r1 = new Random(); // random ile değişkenler
int i = 0;
int[] resim = new int[5]; // değişkenimiz 5 kadar

for (i = 0; i <= 4; i++) // for döngüsü sokuyoruz
{
resim[i] = r1.Next(1, 15); // resimlerin hareketi

}
pictureBox1.Left = pictureBox1.Left + resim[0];
pictureBox2.Left = pictureBox1.Left + resim[1];
pictureBox3.Left = pictureBox1.Left + resim[2];
pictureBox4.Left = pictureBox1.Left + resim[3];

}
else
{
timer1.Enabled = false;
}

}

private void button2_Click(object sender, EventArgs e)
{
Form4 frm4 = new Form4();
frm4.Show();
this.Hide();
}
}
//FORM6
public partial class Form6 : Form
{
public Form6()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form7 frm7 = new Form7();
frm7.Show();
this.Hide();
}

private void button2_Click(object sender, EventArgs e)
{
Form9 frm9 = new Form9();
frm9.Show();
this.Hide();
}

private void button4_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
this.Hide();
}

private void button3_Click(object sender, EventArgs e)
{
Form10 frm10 = new Form10();
frm10.Show();
this.Hide();
}

private void button5_Click(object sender, EventArgs e)
{
Form14 frm14 = new Form14();
frm14.Show();
this.Hide();
}
}
//FORM7
public partial class Form7 : Form
{
double sayi1, sayi2, toplam;
public Form7()
{
InitializeComponent();
}
private void Form7_Load(object sender, EventArgs e)
{

comboBox1.Items.Add("+");
comboBox1.Items.Add("-");
comboBox1.Items.Add("*");
comboBox1.Items.Add("/");
}

private void button1_Click(object sender, EventArgs e)
{

sayi1 = Convert.ToDouble(textBox1.Text);
sayi2=Convert.ToDouble(textBox2.Text);

switch (comboBox1.Text)
{
case "+":
toplam = sayi1 + sayi2;
label1.Text = toplam.ToString();
break;
case "-":
toplam = sayi1 – sayi2;
label1.Text = toplam.ToString();
break;

case "*":
toplam = sayi1 * sayi2;
label1.Text = toplam.ToString();

break;

case "/":
toplam = sayi1 / sayi2;
label1.Text = toplam.ToString();

break;
}
}

private void button2_Click(object sender, EventArgs e)
{
Form6 frm6 = new Form6();
frm6.Show();
this.Hide();
}
}
//FORM8
public partial class Form8 : Form
{
public Form8()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{

textBox1.Text = textBox1.Text + "a";

}

private void button35_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "#";
}

private void Form8_Load(object sender, EventArgs e)
{
groupBox1.Visible = false;
textBox1.Multiline = true;
}

private void button40_Click(object sender, EventArgs e)
{
groupBox1.Visible = true;
}

private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "b";
}

private void button3_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "c";
}

private void button4_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "d";
}

private void button5_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "e";
}

private void button6_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "f";
}

private void button7_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "g";
}

private void button8_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "h";
}

private void button9_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "i";
}

private void button10_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "j";
}

private void button11_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "k";
}

private void button12_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "l";
}

private void button13_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "m";
}

private void button14_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "n";
}

private void button15_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "o";
}

private void button16_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "p";
}

private void button17_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "r";
}

private void button18_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "s";
}

private void button19_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "t";
}

private void button20_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "u";
}

private void button21_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "v";
}

private void button22_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "y";
}

private void button23_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "z";
}

private void button24_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "w";
}

private void button25_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "x";
}

private void button26_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "q";
}

private void button27_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + " ";
}

private void button28_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + ",";
}

private void button29_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "?";
}

private void button30_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "!";
}

private void button31_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + ";";
}

private void button36_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "+";
}

private void button37_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "-";
}

private void button38_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "’";
}

private void button39_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "=";
}

private void button32_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + ":";
}

private void button33_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + ")";
}

private void button34_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + "(";
}

private void button41_Click(object sender, EventArgs e)
{
MessageBox.Show("Mesajınız GÖnderildi");
}

private void button42_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
this.Hide();
}
}
//FORM9
public partial class Form9 : Form
{
double dk, sn, sl;
public Form9()
{
InitializeComponent();
}

private void Form9_Load(object sender, EventArgs e)
{
timer1.Enabled = false;
}

private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
}

private void button2_Click(object sender, EventArgs e)
{
timer1.Enabled = false;
}

private void button3_Click(object sender, EventArgs e)
{
sl = 00;
label3.Text = sl.ToString();
sn = 00;
label2.Text = sn.ToString();
dk = 00;
label1.Text = dk.ToString();
label1.Text = "00";
label2.Text = "00";
label3.Text = "00";
timer1.Enabled = false;
}

private void timer1_Tick(object sender, EventArgs e)
{
sl++;
label3.Text = sl.ToString();
if (sl == 60)
{
sn++;
label2.Text = sn.ToString();
sl = 00;
label3.Text = sl.ToString();
}
if (sn == 60)
{
dk++;
label1.Text = dk.ToString();
sn = 00;
label2.Text = sn.ToString();
}
}

private void button4_Click(object sender, EventArgs e)
{
Form6 frm6= new Form6();
frm6.Show();
this.Hide();
}
}
//FORM10
public partial class Form10 : Form
{
public Form10()
{
InitializeComponent();
}

private void Form10_Load(object sender, EventArgs e)
{
textBox1.Text = DateTime.Now.ToShortDateString();
textBox2.Text = DateTime.Now.ToLongTimeString();
timer1.Enabled = false;
timer2.Enabled = false;
timer2.Interval = 100;
timer1.Interval = 1000;
this.Text = "Alarm kapalı";
}

private void button1_Click_1(object sender, EventArgs e)
{
timer1.Enabled = true;
this.Text = "Alarm açık";
}

private void button2_Click(object sender, EventArgs e)
{
timer1.Enabled = false;
timer2.Enabled = false;
this.Text = "Alarm kapalı";
}

private void timer2_Tick(object sender, EventArgs e)
{
Color c;
c = textBox3.BackColor;
textBox3.BackColor = textBox3.ForeColor;
textBox3.ForeColor = c;
}

private void timer1_Tick(object sender, EventArgs e)
{
if (textBox1.Text == DateTime.Now.ToShortDateString() &amp;&amp; textBox2.Text == DateTime.Now.ToLongTimeString())
{
MessageBox.Show(textBox3.Text);
timer2.Enabled = true;

}
}

private void button3_Click(object sender, EventArgs e)
{
Form6 frm6 = new Form6();
frm6.Show();
this.Hide();
}
}
//FORM11
public partial class Form11 : Form
{
Random rastgele = new Random();
int sayi1, sayi2, sayi3, sayi4, sayi5, sayi6;

public Form11()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{

sayi1 = rastgele.Next(50);
sayi2 = rastgele.Next(50);
sayi3 = rastgele.Next(50);
sayi4 = rastgele.Next(50);
sayi5 = rastgele.Next(50);
sayi6 = rastgele.Next(50);

label1.Text = sayi1.ToString();
label2.Text = sayi2.ToString();
label3.Text = sayi3.ToString();
label4.Text = sayi4.ToString();
label5.Text = sayi5.ToString();
label6.Text = sayi6.ToString();

}

private void button2_Click(object sender, EventArgs e)
{
Form4 frm4 = new Form4();
frm4.Show();
this.Hide();
}
}
//FORM12
public partial class Form12 : Form
{
public Form12()
{
InitializeComponent();
}

private void Form12_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 100;
}

private void button1_Click_1(object sender, EventArgs e)
{
Random rnd = new Random();

// Daire koordinatları
int x = rnd.Next(this.ClientRectangle.Width);
int y = rnd.Next(this.ClientRectangle.Height);
// ve çapı
int cap = rnd.Next(25, 50);

Graphics fg = this.CreateGraphics();
fg.FillEllipse(new SolidBrush(Color.Yellow), x, y, cap, cap);

}

private void button2_Click_1(object sender, EventArgs e)
{
Random rnd = new Random();

// Daire koordinatları
int x = rnd.Next(this.ClientRectangle.Width);
int y = rnd.Next(this.ClientRectangle.Height);
// ve çapı
int cap = rnd.Next(25, 50);

Graphics fg = this.CreateGraphics();
fg.FillEllipse(new SolidBrush(Color.Blue), x, y, cap, cap);
}

private void button3_Click(object sender, EventArgs e)
{
Form4 frm4 = new Form4();
frm4.Show();
this.Hide();
}
}
//FORM13
public partial class Form13 : Form
{
public Form13()
{
InitializeComponent();
}

private void Form13_Load(object sender, EventArgs e)
{
webBrowser1.Navigate("www.fenerbahce.org");
}
}
//FORM14
public partial class Form14 : Form
{
public Form14()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form6 frm6 = new Form6();
frm6.Show();
this.Hide();
}
}
//FORM15
public partial class Form15 : Form
{
public Form15()
{
InitializeComponent();
}

private void button1_Click_1(object sender, EventArgs e)
{
saveFileDialog1.ShowDialog();
string ara;
ara = saveFileDialog1.FileName;
pictureBox1.Load(ara);

}
private void button2_Click(object sender, EventArgs e)
{
Form16 frm16 = new Form16();
frm16.Show();
this.Hide();
}
private void button3_Click(object sender, EventArgs e)
{
Form13 frm13 = new Form13();
frm13.Show();
this.Hide();
}
}
//FORM16
public partial class Form16 : Form
{
public Form16()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form13 frm13 = new Form13();
frm13.Show();
this.Hide();
}

private void button2_Click(object sender, EventArgs e)
{
Form15 frm15 = new Form15();
frm15.Show();
this.Hide();
}

private void button3_Click(object sender, EventArgs e)
{
saveFileDialog1.ShowDialog();
string ara;
ara = saveFileDialog1.FileName;
}

private void button4_Click(object sender, EventArgs e)
{
Form17 frm17 = new Form17();
frm17.Show();
this.Hide();
}

private void button5_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
this.Hide();
}
}
//FORM17
public partial class Form17 : Form
{
public Form17()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
// Form1 frm1 = new Form1();
// frm1.label1.Text = textBox1.Text;
Form1 frm1 = new Form1();
frm1.Show();
this.Hide();
frm1.label1.Text = textBox1.Text;

}

private void button2_Click(object sender, EventArgs e)
{
Form16 frm16 = new Form16();
frm16.Show();
this.Hide();
}
} [/code]


Projeyi İNDİR

Yorumlar 1

Bir yanıt yazın

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