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가 뜰 때
- setInterval 정지
- listener 1883
- c# datagridview 데이터 넣기
- AntDesign
- allow_anonymouse
- 서버동기화
- transfer
- mosquitto
- invalid data
- pm2 상태 확인
- setInterval 외부 정지
- pm2 확인
- pm2
- pm2 시작
- 데이터테이블 데이터 넣기
- pm2 설치
- mosquitto.conf
- DatePicker
- html #select #option #multiple
- DataGridView 직접 입력
- 공인IP
- setInterval 중지
- 맥 어드레스
- setInterval clear
- datagridview 직접입력
- timepicker
- Replication
- mySQL_Replication
- 1883
Archives
- Today
- Total
개발 노트
doublebuffer 본문
using System.Reflection; // 더블버퍼링 하기 위해서 추가
namespace 네임스페이스이름
{
public partial class Form1 : Form
{
public formReservation()
{
InitializeComponent();
dataGridView1.DoubleBuffered(true); // 확장하기
}
}
public static class ExtensionMethods // DoubleBuffered 메서드를 확장
{
public static void DoubleBuffered(this DataGridView dgv, bool setting)
{
Type dgvType = dgv.GetType();
PropertyInfo pi = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.SetProperty);
pi.SetValue(dgv, setting, null);
}
}
} 네임스페이스 닫기