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