하고재비
[C#] Openfiledialog 사용 본문
form design 에서 openfiledialog 추가
이벤트 핸들러 작성
1
2
3
4
5
6
7
8
9
|
private void oPENToolStripMenuItem_Click(object sender, EventArgs e)
{
string filePath = string.Empty;
openFileDialog.InitialDirectory = System.AppDomain.CurrentDomain.BaseDirectory;
{
filePath = openFileDialog.FileName;
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
'C# Windows Forms WPF' 카테고리의 다른 글
[C#] File directory Treeview (0) | 2019.09.04 |
---|---|
[C#] 프로그램 방식의 click event 발생 (0) | 2019.09.03 |
[C#] 지수 변환 (0) | 2019.06.14 |
[C#] 콘솔창 유지 (0) | 2019.06.02 |
[WPF] Datagrid and MDB (0) | 2018.12.09 |
Comments