Hello World

  • 홈
  • 태그
  • 방명록

C# DateTime 3

[C#]디지털 시계

private void CreateSegment(Control ctl, int number) { Graphics g = ctl.CreateGraphics(); Pen p = new Pen(Color.Orange, 10); Point po1 = new Point(10, 10); Point po2 = new Point(10, 50); Point po3 = new Point(10, 90); Point po4 = new Point(60, 10); Point po5 = new Point(60, 50); Point po6 = new Point(60, 90); g.Clear(Color.Black); if (number == 0) { g.DrawLine(p, po1, po2); g.D..

C# 2019.06.14

[C#]카운트다운 예제

double nTotalSeconds = 90; DateTime dt; private void Form_Load(object sender, EventArgs e) { dt = new DateTime(); timer1.Interval = 1000; timer1.Enabled = true; } private void timer1_Tick(object sender, EventArgs e) { nTotalSeconds--; textBox1.Text = dt.AddSeconds(nTotalSeconds).ToString("HH:mm:ss"); if(nTotalSeconds == 0) timer1.Enabled = false; } 출력 00:01:30 00:01:29 00:..

C# 2018.05.16

[C#]마지막 일 구하기 예제

DateTime startYMD = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); //이번달 마지막날 string lYMD = startYMD.AddMonths(1).AddDays(-1).ToString("yyyyMMdd"); 또는 int daysInJuly = System.DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month);//지정된 월과 연도의 일수를 반환합니다

C# 2016.04.06
이전
1
다음
더보기
프로필사진

Hello World

  • 분류 전체보기 (198)
    • C# (160)
    • ORACLE (23)
    • MSSQL (1)
    • 한옥집 리모델링 (12)

Tag

한옥리모델링, PDA, 익산시 망성면, WIN CE.NET, WINDOWS MOBILE, 나바위성지, 한옥철거, 귀농귀촌, C#, 나바위성당,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바