- 博客(8)
- 收藏
- 关注
原创 对文件夹及文件的操作
#region 创建文件夹、复制文件 private void Files() { //文件夹名及绝对路径 string FolderName = @"D:/CreateTest"; //判断文件夹是否存在 if (Directory.Exists(FolderName) == fa
2007-09-14 13:53:00
541
原创 对XML的创建/修改/读取/删除
public void CreateXml(string Path) { XmlDocument xmldoc = new XmlDocument(); XmlDeclaration xmldec = xmldoc.CreateXmlDeclaration("1.0", null, null); xmldec.Enco
2007-09-14 13:51:00
517
原创 //Dataset 生成excel和xml--//DataGrid 生成excel
//Dataset 生成excel和xmlpublic void CreateExcel(DataSet ds, string typeid, string FileName) { HttpResponse resp; resp = Page.Response; resp.ContentEncoding = System.Text.Encoding.
2007-09-14 13:47:00
728
原创 选择子窗口的值传给父窗口
父窗口 function btnsearch() { { var i = Math.floor(Math.random( )*100) window.document.forms(0).value=i; var value = w
2007-09-11 11:03:00
653
原创 gridview中dropdownlist的赋值
protected void seleteddl() { DataSet ds = Loadgvfactory(); DropDownList ddl; for (int i = 0; i { for (int n = 0; n { DataRowView m
2007-09-11 10:54:00
1031
原创 gridview应用
protected void gvreceiver_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //鼠标经过时,行背景色变 e.Row.Attribute
2007-09-11 10:51:00
438
原创 读取私有字体信息并进行相关判断
private void Font_IsStyleAvailable() { Graphics graphics = CreateGraphics(); graphics.Clear(Color.White); Pen pen = new Pen(Color.Gray); PointF poi
2007-08-06 14:38:00
608
原创 读取系统中已安装的字体信息
private void SystemFont() { //设置窗体的基本属性 Graphics graphics = CreateGraphics(); graphics.Clear(Color.White); SolidBrush solidbrush = new SolidBrush(C
2007-08-06 14:30:00
840
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人