摘要:
1.选择文件对话框如题:写一个选择文件的功能时,添加一个textbox和一个Button,textbox的name为textBox1,Button的name为button1,然后在设计界面,双击Button,添加代码如下:private void button1_Click(object sender, RoutedEventArgs e){Microsoft.Win32.OpenFileDialog fileDialog1 = new Microsoft.Win32.OpenFileDialog();fileDialog1.InitialDirectory = "d:\\" 阅读全文
posted @ 2012-11-26 16:55 xlw1219 阅读(5138) 评论(0) 推荐(0) 编辑