Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- map이 undefined가 뜰 때
- allow_anonymouse
- pm2
- 데이터테이블 데이터 넣기
- html #select #option #multiple
- 서버동기화
- pm2 상태 확인
- 공인IP
- transfer
- mosquitto
- pm2 설치
- timepicker
- c# datagridview 데이터 넣기
- setInterval 중지
- setInterval 외부 정지
- invalid data
- 1883
- setInterval 정지
- AntDesign
- DatePicker
- pm2 시작
- DataGridView 직접 입력
- mosquitto.conf
- setInterval clear
- pm2 확인
- datagridview 직접입력
- listener 1883
- mySQL_Replication
- 맥 어드레스
- Replication
Archives
- Today
- Total
개발 노트
프로그레스바 연습하기 본문
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace datagridex1
{
public partial class Form1 : Form
{
private Timer timer;
private int timerCount = 0;
public Form1()
{
InitializeComponent();
// 테스트용으로 타이머 이용
timer = new Timer();
timer.Interval = 1000;
timer.Tick += new EventHandler(timer_Tick);
}
private void Form1_Load(object sender, EventArgs e)
{
// 디폴트값 사용 (Maximum=100, Minimum=0, Step=10)
progressBar1.Style = ProgressBarStyle.Blocks;
// 테스트를 위해 타이머 시작
timer.Start();
}
private void timer_Tick(object sender, EventArgs e)
{
// 한 스텝 이동
progressBar1.PerformStep();
// 타이머 중지 조건
if (++timerCount == 10)
{
timer.Stop();
}
}
}
}
'프로그래밍 > C#' 카테고리의 다른 글
C# 데이터테이블 텍스트박스로 데이터 넣기 (0) | 2022.01.17 |
---|---|
[C#] DataGridView에 직접 데이터 넣어보기 (0) | 2022.01.17 |
[에러정리] System.NullReferenceException (0) | 2022.01.17 |
C# 프로그래밍 언어는 (0) | 2022.01.14 |
c# ftp 데이터 업데이트 해보기1 (0) | 2022.01.14 |