![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 67
baozhongchao
吹尽狂沙始到金
展开
-
C# ESC
具体内容大家自己看!如有好的解决方案大家共同研究! (1)自定义纸张设置 控制面板->打印机和传真->右键->服务器属性->创建新的格式 (2)自定义纸张使用 this.printDocument1.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("NewPrint", iWidth, iHeight);转载 2010-04-12 16:39:00 · 1870 阅读 · 0 评论 -
C#調用外部dos命令並取得返回結果
private static string CmdPing(string strIp) { Process p = new Process(); //设定程序名 p.StartInfo.FileName = "cmd.exe"; //关闭Shell的使用 p.Star转载 2010-04-07 18:17:00 · 1556 阅读 · 0 评论 -
C#与Flash交互
第一步C#添加组件打开VS2005-工具-选择工具箱项-COM组件-选择Shockwave Flash Object-确定添加好组件往场景上拖放,如果提示注册需求注册c# 注册控件-在运行输入-回车(flash9f.ocx这个文件以系统中实际文件为准。)regsvr32 c:/windows/system32/macromed/flash/flash9f.ocx或者regsvr32 c:/wind原创 2010-04-21 14:08:00 · 740 阅读 · 0 评论 -
Asp.net调用RAR压缩文件与解压文件源码
//压缩protected void btnY_Click(object sender, EventArgs e){ string rar; RegistryKey reg; string args; ProcessStartInfo procStart; Process process; try { reg = Registry.ClassesRoot.OpenSubKey(@"Applica原创 2010-05-07 16:07:00 · 1060 阅读 · 0 评论 -
asp.net (c#)控件大全
DataGridView 控件DataGridView 控件提供用来显示数据的可自定义表。使用 DataGridView 类,可以自定义单元格、行、列和边框。注意DataGridView 控件提供 DataGrid 控件所不具备的许多基本和高级功能。有关更多信息,请参见 Windows 窗体 DataGridView 控件和DataGrid 控件之间的区别常用属性:DefaultCellStyle原创 2010-05-07 16:43:00 · 855 阅读 · 0 评论 -
C# 下载 解压 选择文件夹 保存文件 删除目录下文件及文件夹
//写代码前 先在工具箱里 拉几个按钮和 textbox//再给几个按钮添加相应的事件,把各个事件里的代码考进去。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Sy原创 2010-05-14 10:31:00 · 1110 阅读 · 0 评论