選擇文件 c#

| |
[不指定 2008/06/12 15:20 | by Else ]
[codes=C#]  private void btn_select_Click(object sender, EventArgs e)
        {
          
                OpenFileDialog fdlg = new OpenFileDialog();              
              
                fdlg.Filter = "All files (*.xls)|*.xls|All files (*.xls)|*.xls";
                fdlg.FilterIndex = 2;
                
                if (fdlg.ShowDialog() == DialogResult.OK)
                {
                    txt_file_path.Text = fdlg.FileName;
                }

        }[/codes]

作者:Else 's Blog
地址:http://www.aixq.com/post/1064/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
  • 中查看更多“選擇文件 c#”相关内容
  • 中查看更多“選擇文件 c#”相关内容
  • 中查看更多“選擇文件 c#”相关内容
  • 中查看更多“選擇文件 c#”相关内容
  • 中查看更多“選擇文件 c#”相关内容
  • 中查看更多“選擇文件 c#”相关内容
  • 代码 程序 编程 | 评论(0) | 引用(0) | 阅读(3908)
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]