OpenFileDialog ImportFileDialog = new OpenFileDialog();
ImportFileDialog.DefaultExt = "*.xml";
ImportFileDialog.InitialDirectory = ".";
ImportFileDialog.Filter = "xml Files (*.xml)|*.xml|All Files (*.*)|*.*";
ImportFileDialog.FilterIndex = 1;
ImportFileDialog.RestoreDirectory = true;
if (ImportFileDialog.ShowDialog() == DialogResult.OK)
{
// ImportFileDialog.FileName 이거 써서 사용.
}
SaveFileDialog ExportFileDialog = new SaveFileDialog();
ExportFileDialog.InitialDirectory = @"C:\";
ExportFileDialog.Title = "Export XML";
ExportFileDialog.DefaultExt = "xml";
ExportFileDialog.Filter = "xml Files (*.xml)|*.xml|All Files (*.*)|*.*";
ExportFileDialog.FilterIndex = 1;
ExportFileDialog.RestoreDirectory = true;
if (ExportFileDialog.ShowDialog() == DialogResult.OK)
{
// ExportFileDialog.FileName 이거 써서 사용.
}
'▩▩ 프로그래밍 ▩▩ > C#' 카테고리의 다른 글
| [C#] ToolStrip의 ComboBox에서 SelectionChangeCommitted 쓰고싶을 때 (0) | 2013.10.28 |
|---|---|
| [C#] Combobox --> ReadOnly 만들기 (0) | 2013.10.28 |
| [C#] byte[] --> string / string --> byte[] (0) | 2013.10.16 |
| [C#] Delegate, 자식 폼에게서 값 받기 (2) | 2013.10.11 |
| [C#] treeView 더블클릭 트리 펴지는거(Expand) 막기 (0) | 2013.10.11 |
| [C#] DataGridView 값 접근 (0) | 2013.10.07 |
| [C#] 개체 참조가 개체의 인스턴스로 설정되지 않았습니다. (0) | 2013.10.07 |
| [C#] XML 다루기 (0) | 2013.09.30 |
![[나크21] 캐주얼 미니스커트 치마바지 NK21-P-10](https://image13.coupangcdn.com/image/affiliate/banner/a0874210c3b8ced08e8de1985ebfb8c9@2x.jpg)

