Şimdi Ara

ODEV ICIN YARDIM ?

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
2 Misafir - 2 Masaüstü
5 sn
4
Cevap
0
Favori
643
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • Cozulmustur.



    < Bu mesaj bu kişi tarafından değiştirildi kabus1234 -- 17 Kasım 2013; 21:11:41 >



  • kabus1234 K kullanıcısına yanıt
    bı yardım edın beyler ya
  • /*
    * Created by SharpDevelop.
    * User: goksen
    * Date: 17.11.2013
    * Time: 12:03
    *
    * To change this template use Tools | Options | Coding | Edit Standard Headers.
    */
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;

    namespace rnd
    {
    /// <summary>
    /// Description of MainForm.
    /// </summary>
    public partial class MainForm : Form
    {
    public MainForm()
    {
    //
    // The InitializeComponent() call is required for Windows Forms designer support.
    //
    InitializeComponent();

    //
    // TODO: Add constructor code after the InitializeComponent() call.
    //
    }

    void Button1Click(object sender, EventArgs e)
    {
    timer1.Start();

    }

    void Timer1Tick(object sender, EventArgs e)
    {
    label1.Text="";
    Color[] myarr=new Color[3] {Color.Red,Color.Yellow,Color.Black};

    Random rnd = new Random();

    pictureBox1.BackColor=myarr[rnd.Next(0, myarr.Length)];
    pictureBox2.BackColor=myarr[rnd.Next(0, myarr.Length)];
    pictureBox3.BackColor=myarr[rnd.Next(0, myarr.Length)];


    if ((pictureBox1.BackColor==pictureBox2.BackColor) & (pictureBox2.BackColor==pictureBox3.BackColor)) {
    label1.Text="TEBRİKLER KAZANDIN";

    }


    }
    }
    }




  • quote:

    Orijinalden alıntı: Gökşen PASLI





    /*
    * Created by SharpDevelop.
    * User: goksen
    * Date: 17.11.2013
    * Time: 12:03
    *
    * To change this template use Tools | Options | Coding | Edit Standard Headers.
    */
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;

    namespace rnd
    {
    /// <summary>
    /// Description of MainForm.
    /// </summary>
    public partial class MainForm : Form
    {
    public MainForm()
    {
    //
    // The InitializeComponent() call is required for Windows Forms designer support.
    //
    InitializeComponent();

    //
    // TODO: Add constructor code after the InitializeComponent() call.
    //
    }

    void Button1Click(object sender, EventArgs e)
    {
    timer1.Start();

    }

    void Timer1Tick(object sender, EventArgs e)
    {
    label1.Text="";
    Color[] myarr=new Color[3] {Color.Red,Color.Yellow,Color.Black};

    Random rnd = new Random();

    pictureBox1.BackColor=myarr[rnd.Next(0, myarr.Length)];
    pictureBox2.BackColor=myarr[rnd.Next(0, myarr.Length)];
    pictureBox3.BackColor=myarr[rnd.Next(0, myarr.Length)];


    if ((pictureBox1.BackColor==pictureBox2.BackColor) & (pictureBox2.BackColor==pictureBox3.BackColor)) {
    label1.Text="TEBRİKLER KAZANDIN";

    }


    }
    }
    }


    allah razı olsun hocam cok saol




  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.