![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
。NET
nie_wen_li
希望通过这个平台认识更多得朋友,向大家学习
展开
-
C# 下载文件
C#添加修改删除文件文件夹大全 StreamWriter sw = File.AppendText(Server.MapPath(".")+"//myText.txt");sw.WriteLine("追逐理想");sw.WriteLine("kzlll");sw.WriteLine(".NET笔记");sw.Flush();sw.Close();C#拷贝文件string OrignFile,NewFile;OrignFile = Server.MapPath(".")+"//myText.txt";NewF转载 2010-06-03 15:36:00 · 242 阅读 · 0 评论 -
C# dataGridView导出Excel
总结DataGridView导出Excel代码 private void DataGridViewToExcel(DataGridView dgv) { #region 验证可操作性 int rowscount = dgv.Rows.Count; int colscount = dgv.Columns.Count; if (rowscount { M原创 2010-06-04 17:04:00 · 523 阅读 · 0 评论 -
C# 数字文本框
<br />public class NumberTextBox : TextBox<br /> {<br /> private int _decimalDigits = 2;<br /> private string _matchString = string.Empty;<br /> private string _formatString = string.Empty;<br /> private const int WM_CHAR = 0转载 2010-06-04 22:21:00 · 642 阅读 · 0 评论 -
C# dataGridView导出word文档
<br />public void DataGridViewToWord(DataGridView dgv)<br /> {<br /> SaveFileDialog dlg = new SaveFileDialog();<br /> dlg.DefaultExt = "doc ";<br /> dlg.Filter = "WORD文件(*.DOC)|*.doc ";<br /> dlg.InitialDirect转载 2010-06-04 22:25:00 · 1170 阅读 · 2 评论