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
- DataGridView 직접 입력
- setInterval 정지
- pm2 상태 확인
- mySQL_Replication
- 1883
- allow_anonymouse
- AntDesign
- mosquitto
- map이 undefined가 뜰 때
- timepicker
- 데이터테이블 데이터 넣기
- vite
- pm2 시작
- datagridview 직접입력
- mosquitto.conf
- setInterval clear
- html #select #option #multiple
- c# datagridview 데이터 넣기
- pm2 설치
- pm2 확인
- 맥 어드레스
- tailwind
- setInterval 중지
- invalid data
- react
- setInterval 외부 정지
- DatePicker
- 서버동기화
- listener 1883
- pm2
Archives
- Today
- Total
개발 노트
텍스트박스 드래그드랍기능 본문
- 드롭될 해당 컨트롤의 AllowDrop을 true로 설정
private void textBox52_DragDrop(object sender, DragEventArgs e)
{
string[] strFileNames = e.Data.GetData(DataFormats.FileDrop) as string[];
foreach (string strFilePath in strFileNames)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
textBox52.AppendText(System.IO.File.ReadAllText(strFilePath));
}
}
// // 파일의 내용을 텍스트박스에 추가
// //txtMain.AppendText( System.IO.File.ReadAllText(strFilePath));
// // 파일의 내용만 텍스트박스에 출력
// textBox52.Text += System.IO.File.ReadAllText(strFilePath);
// // 하나만 출력하고 그대로 빠져나감
// //break;
// DragDrop은 리스트 컨트롤에 마우스를 드래그해서 놓았을때 발생하는 함수
button16_Click(sender, e);
}
참고링크
https://great-artist.tistory.com/96
https://www.csharpstudy.com/WinForms/WinForms-dragdrop.aspx
'프로그래밍 > C#' 카테고리의 다른 글
C# 로또 조합번호 전부 가져오기 (0) | 2022.03.24 |
---|---|
2022.03.21_발정데이터_farm3797_09시&17시 (0) | 2022.03.21 |
C# 책 포스팅 (0) | 2022.03.16 |
MSSQL - WITH 구문(임시테이블 만들기) (0) | 2022.03.14 |
SERIALIZE DESERIALIZE (0) | 2022.03.14 |