摘要:
1.首先引用命名空间 (vs2012已默认导入)using System.Threading.Tasks;2.使用 Parallel.Invoke()方法执行并行任务Parallel.Invoke( //方法1 //方法2 //方法3 );带参数示例:private void btnLoadImageParaller_Click(object sender, EventArgs e){ Parallel.Invoke( () => LoadOld(参数1,参数2,参数3), //加载原图 ... 阅读全文
摘要:
1.下载下面类库并引入里面的三个DLL文件http://files.cnblogs.com/xdoudou/Microsoft_Visual_Studio_International_Pack_1.0.rar2.创建一个类Pinyin.csusing System;using System.Data;using System.Configuration;using System.Web;using Microsoft.International.Converters.PinYinConverter;using System.Collections.ObjectModel;using Syste 阅读全文
摘要:
System.Diagnostics.Process.Start("explorer.exe", "/select," + filePath);其中filePath是指定文件的完全限定路径。 阅读全文
摘要:
1. 添加Using 声明using System.Runtime.InteropServices;2.在类中加入如下API代码: [DllImport("user32")] private static extern bool ReleaseCapture(); [DllImport("user32")] private static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam); public const int WM_SYSCOMMAND = 0x011 阅读全文