上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页
摘要: 在使用过程中..DataGridView的列为字符类型..如 dataGridView1.Columns.Add("123", "33"); dataGridView1.Rows.Add(8); dataGridView1.Rows[0].Cells[0].Value = "10"; dataGridView1.Rows[1].Cells[0].Value = "5"; dataGridView1.Rows[2].Cells[0].Value = "11278.0"; dataGridView1 阅读全文
posted @ 2011-06-22 18:02 许明吉博客 阅读(9038) 评论(0) 推荐(0) 编辑
摘要: namespace WindowsAPI { /// <summary> /// 在WINDOWS任务管理器里 不显示进程 /// qq:116149 /// zgke@sina.copm /// </summary> public class HideTaskmgrList { private System.Timers.Timer m_Time = new System.Timers.Timer(); private string m_ProcessName = ""; private int m_ProcessID = 0; /// <s 阅读全文
posted @ 2011-06-22 18:01 许明吉博客 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: 获取文件的图标this.Icon = GetFileIcon(@"c:\gdiplus.dll");获取文件夹图标this.Icon = GetDirectoryIcon();全不代码[StructLayout(LayoutKind.Sequential)] public struct SHFILEINFO { public IntPtr hIcon; public IntPtr iIcon; public uint dwAttributes; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] public stri 阅读全文
posted @ 2011-06-22 17:58 许明吉博客 阅读(6762) 评论(2) 推荐(1) 编辑
摘要: C# 启动外部程序的几种方法:1. 启动外部程序,不等待其退出。2. 启动外部程序,等待其退出。3. 启动外部程序,无限等待其退出。4. 启动外部程序,通过事件监视其退出。 // using System.Diagnostics; private string appName = "calc.exe"; /// <summary> /// 1. 启动外部程序,不等待其退出 /// </summary> private void button1_Click(object sender, EventArgs e) { Process.Start(appN 阅读全文
posted @ 2011-06-22 17:56 许明吉博客 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 我只是做了一些简单的测试...有疑问给我发消息把.使用方法//获取选择的图形 并且保存出来private void button2_Click(object sender, EventArgs e) { IList<MemoryStream> _List = gifRichTextBox1.LoadSelectFile(); for (int i = 0; i != _List.Count; i++) { File.WriteAllBytes(@"C:\Temp\A" + i.ToString() + ".gif", _List[0].ToA 阅读全文
posted @ 2011-06-22 17:55 许明吉博客 阅读(2896) 评论(5) 推荐(1) 编辑
摘要: http://marekmis.com/http://spawaczedomira.pl/ 阅读全文
posted @ 2011-06-20 16:19 许明吉博客 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 以淡入淡出显示图像效果显示图像主要使用了ImageAttributes类的SetColorMatrix方法设置颜色调整矩阵实现淡入淡出的效果。ImageAttributes对象维护多个颜色调整设置,包括颜色调整矩阵、灰度调整矩阵、灰度校正值、颜色映射表和颜色阈值。呈现过程中,可以对颜色进行校正、调暗、调亮和移除。 淡入效果代码如下:privatevoidbutton1_Click(objectsender,EventArgse){ //淡入显示图像 try { Graphicsg=this.panel1.CreateGraphics(); g.Clear(Color.Gray); intwid 阅读全文
posted @ 2011-06-14 10:31 许明吉博客 阅读(3455) 评论(0) 推荐(2) 编辑
摘要: 数组-->集合-->泛型(1)数组1. 数组数据结构是System.Array类的一个实例.2. System.Array类的语法为[SerializableAttribute] [ComVisibleAttribute(true)] public abstract class Array : ICloneable, IList, ICollection, IEnumerable3. 下面看一个使用数组的例子(我称之为隐式实现)protected void Page_Load(object sender, EventArgs e){ string[] strArrName = ne 阅读全文
posted @ 2011-06-14 10:10 许明吉博客 阅读(1416) 评论(0) 推荐(0) 编辑
摘要: 标签: 域名绑定 , 微软动态Loading...-->微软smallbusiness.officelive.com免费推出500M免费ASP.NET空间,英文名OFFICE LIVE SMALL BUSINESS。可免费绑定域名,只支持ASP.NET,没有SQL等数据库,不支持FTP管理,可用来做简单的企业站、静态站、图库等。微软500M免费ASP.NET空间简介:优点:1、微软的服务器稳定性是足以可信的,服务器的稳定性以及IP地址对搜索引擎是很有影响的。2、可免费绑定域名(但不支持CN类米)3、大小500M,足够一般使用4、无广告不足:1、只支持ASP.NET2、没有SQL等数据库3 阅读全文
posted @ 2011-06-13 17:25 许明吉博客 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 和模态对话框编辑器一样,C# WinForm控件开发环境并不会直接调用我们的编辑器控件,而是用过UITypeEditor类的派生来实现编辑器的调用,所以我们必须实现一个下拉式编辑器。 这篇文章我将介绍如何编写下拉式属性编辑器。下拉式(DropDown)属性编辑器和模态对话框属性编辑器的不同之处就是,当你点击属性值修改的时候,模态对话框编辑器是弹出一个模态对话框,而下拉式属性编辑器却是在紧贴着属性值的地方显示一个下拉的控件。不知道大家注意到了没有,这里我说的是显示一个下拉的控件,而这个控件也是需要你去C# WinForm控件开发的,接下来我还是以Scope属性为例,介绍一下具体的实现。首先我们要 阅读全文
posted @ 2011-06-08 18:09 许明吉博客 阅读(5584) 评论(1) 推荐(1) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页