| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 가상환경
- 원한
- 파이썬
- Custom
- DataTables
- SCADA
- JQuery
- 분노
- STS
- HMI
- 말라키
- LOG
- 명령어
- 맥코트
- Linux
- Python
- pythoncom37.dll
- error
- checkbox
- Eclipse
- 리눅스
- Anaconda
- geckodriver
- build
- ORA-28002
Archives
- Today
- Total
2010년 5월 1일, 2막
[C#] OpenFileDialog 사용법 본문
private void OpenFileDialog_1()
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "txt Files|*.txt|All Files|*.*";
openFileDialog.FilterIndex = 1; // FilterIndex는 1부터 시작 (여기서는 *.txt)
openFileDialog.RestoreDirectory = true;
try
{
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
lblFileName1.Text = openFileDialog.FileName; // Label에 파일경로 출력
Print_FileStream(openFileDialog.FileName, rtbLog_1); // 사용자 정의 함수임
}
}
catch (System.Exception ex)
{
MessageBox.Show("File Open Error : " + ex.Message);
}
}'Computer' 카테고리의 다른 글
| [C#] From Excel to DataTable in C# with Open XML (0) | 2013.03.29 |
|---|---|
| [C#] DataGridView에서 원하는 값을 얻어오는 방법 (0) | 2013.03.28 |
| 0. Setting (0) | 2013.03.13 |
| eUML 사용법 (0) | 2013.01.24 |
| Android NDK logging (0) | 2012.10.25 |