Kayıtlar

2013 tarihine ait yayınlar gösteriliyor

Çalar saat programı

private void Form1_Load( object sender, System. EventArgs e) { textBox1.Text = DateTime .Now.ToShortDateString(); textBox2.Text = DateTime .Now.ToLongTimeString(); timer2.Enabled = false ; timer1.Enabled = false ; timer2.Interval = 100; timer1.Interval = 1000; Text = "Alarm Kapalı" ; } private void timer1_Tick( object sender, System. EventArgs e) { if (textBox1.Text == DateTime .Now.ToShortDateString() && textBox2.Text == DateTime .Now.ToLongTimeString()) { timer2.Enabled = true ; MessageBox .Show(textBox3.Text); } } private void timer2_Tick( object sender, System. EventArgs e) { Color c; c = textBox3.BackColor; textBox3.BackColor=textBox3.ForeColor ; textBox3.ForeColor=c; }     private void button1_Click( object sender, System. EventA...

Fibonacci

package fibonacci; import java.util.Scanner; /**  *  * @author şerzan  */ public class Fibonacci {        public static int fibo(int sayi){        if(sayi==1||sayi==0){            return sayi;        }        else {            return fibo(sayi-1)+fibo(sayi-2);        }    }        public static void main(String[] args) {         Scanner klavye=new Scanner(System.in);         System.out.print("lütfen bir sayi gir");                 int sayi=klavye.nextInt();         for(int i = 1;i<=sayi;i++){     ...

Sebze fiyatını hesaplama

package javaapplication29; import java.io.*; import javax.swing.JOptionPane; /**  *  * @author şerzan  */ public class JavaApplication29 {     /**      * @param args the command line arguments      */     public static void main(String[] args) {         // TODO code application logic here          String fiyatlar[] = new String [7];         fiyatlar[0] ="Domates Kilo ; 1.50 Kr ";         fiyatlar[1] ="Salatalık Kilo ; 2.50 Kr ";         fiyatlar[2] ="Lahana Adet ; 1.50 Kr ";         fiyatlar[3] ="Maydanoz Adet ; 1.50 Kr ";         fiyatlar[4] ="Mandalina Kilo ; 3.50 Kr ";         fiyatlar[5] ="Portakal Kilo ; 1.75 Kr "; ...

C# Müzik Çalar Programı

Resim
Kodları aşağıdadır umarım faydalı olur... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace MediaPlayer { public partial class Form1 : Form { public Form1() { InitializeComponent(); } static FileInfo [] fi; string [] s1; static int rem = 0; string durum = "caliyor" ; int sayi = 0; private void dosyaAçToolStripMenuItem_Click( object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog (); ofd.Multiselect = true ; ofd.Filter = "MP3 Dosyaları (*.mp4)|*.mp4" ; if (ofd.ShowDialog() == DialogResult .OK) { string [] s; ...