U E D R , A S I H C RSS

데블스캠프2012/넷째날/묻지마Csharp/김태진 (rev. 1.1)

데블스캠프2012/넷째날/묻지마Csharp/김태진

  • 미션 1,2,3,4를 모두 총괄한 것...!

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;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        DateTime A, B;
        int t;
        String str;

        public Form1()
        {
            InitializeComponent();
            timer1.Start();
            str = " 즐거운 데블스캠프 즐거운 데블스캠프";
        }

        private void clicked(object sender, EventArgs e)
        {
            MessageBox.Show("창 떳음");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("버튼 누름 ㅋ");
            A = dateTimePicker1.Value;
            B = dateTimePicker2.Value;
            MessageBox.Show((B.Year-A.Year).ToString()); 
            GetVisiblelabel1();
        }
        private void GetVisiblelabel1() 
        {
            label1.Visible = true;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            t++;
            label2.Text = t.ToString();
            label3.Text = str.Substring(t % 7, t % 7 + 1);
        }
       

 
    }
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:15
Processing time 0.0294 sec