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 | 29 | 30 | 31 |
Tags
- pm2
- setInterval 중지
- mosquitto
- 데이터테이블 데이터 넣기
- transfer
- pm2 시작
- datagridview 직접입력
- invalid data
- 1883
- allow_anonymouse
- DataGridView 직접 입력
- timepicker
- AntDesign
- 공인IP
- listener 1883
- pm2 상태 확인
- html #select #option #multiple
- mySQL_Replication
- pm2 확인
- pm2 설치
- setInterval clear
- map이 undefined가 뜰 때
- setInterval 정지
- 맥 어드레스
- c# datagridview 데이터 넣기
- setInterval 외부 정지
- DatePicker
- 서버동기화
- mosquitto.conf
- 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 |