Notes
Notes - notes.io |
text=radio button ismi
checked=butonun isaretli olmasinin saglayan ozellik
this.backcolord=color.red=arka plani kirmizi yap;
--------------------------------HAFTA 7----------------------------------
RANDOM rastgele=new random();
int sayi=rastegele.next(1,100); 1 ile 99 arasinda sayi uretme
label1.text=sayi.tostring();
list boxtaki elemanlari toplayip ortalama alan kod
double toplam = 0;
int adet = Convert.ToInt32(textBox1.Text);
double ortalama = 0;
for (int i = 0; i < adet; i++)
{
int sayi = Convert.ToInt32(listBox1.Items[i]);
toplam = toplam + sayi;
}
ortalama = toplam / adet;
label2.Text = ortalama.ToString();
application.exit(); cikis yapma
bir formda 2 form yapma
form2 f2=new form2();
f2.showdialog();
-*********************************/1. uygulama/**********************************
mause x y degerini bulma
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
label1.Text = e.X.ToString();
label2.Text = e.Y.ToString();
}
private void Form1_MouseClick(object sender, MouseEventArgs e)
{
listBox1.Items.Add(label1.Text + " " + label2.Text);
}
**********************/2.uygulama/*******************************************
vize final notu hesaplayan uygulama:
int vizenotu = Convert.ToInt32(textBox1.Text);
int vizeyuzde = Convert.ToInt32(numericUpDown1.Value);
int finalnotu = Convert.ToInt32(textBox2.Text);
int finalyuzde = Convert.ToInt32(numericUpDown2.Value);
double hesap=((vizenotu*vizeyuzde)/100)+ ((finalnotu * finalyuzde) / 100);
label5.Text = "ortalama: " + hesap.ToString();
*************************/3.uygulama/*****************************************
tahmin oyunu
int sayi = 0;
int hak = 15;
private void Form1_Load(object sender, EventArgs e)
{
Random rastgele = new Random();
int sayi= rastgele.Next(1, 101);
}
private void button1_Click(object sender, EventArgs e)
{
int tahmin = Convert.ToInt32(textBox1.Text);
if (tahmin>sayi)
{
label2.Text = "tahmin buyuk";
}
if (tahmin <sayi)
{
label2.Text = "tahmin kucuk";
}
if (tahmin == sayi)
{
label2.Text = "tahmin dogru";
}
textBox1.Clear();
hak -= 1;
if (hak==0)
{
Application.Exit();
}
else
{
progressBar1.Value = hak;
}
}
********************************/4.uygulama/**********************************
menu stripte uygulama calistirma
system.diagnostic.process.start("winword.exe")
excel.exe
powerpnt.exe
calc.exe
mspaint.exe
notapad.exe
explorer.exe
chrome.exe
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team