摘要:
在使用过程中..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 阅读全文
摘要:
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 阅读全文
摘要:
获取文件的图标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 阅读全文
摘要:
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 阅读全文
摘要:
我只是做了一些简单的测试...有疑问给我发消息把.使用方法//获取选择的图形 并且保存出来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 阅读全文