上一页 1 ··· 26 27 28 29 30
摘要: 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), //加载原图 ... 阅读全文
posted @ 2013-05-04 16:15 Xdoudou 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-05-04 15:57 Xdoudou 阅读(278) 评论(0) 推荐(0) 编辑
摘要: System.Diagnostics.Process.Start("explorer.exe", "/select," + filePath);其中filePath是指定文件的完全限定路径。 阅读全文
posted @ 2013-05-04 15:49 Xdoudou 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-05-04 15:45 Xdoudou 阅读(482) 评论(1) 推荐(0) 编辑
摘要: returnValue是javascript中html的window对象的属性,目的是返回窗口值,当用window.showModalDialog函数打开一个IE的模式窗口(模式窗口知道吧,就是打开后不能操作父窗口,只能等模式窗口关闭时才能操作)时,用于返回窗口的值,下面举个例子:1、main.html 1 <script type="text/javascript"> 2 //选择文件 3 var ActiveAssetInput; 4 function openAsset(s) 5 { 6 ActiveAssetInput = s 7 if(navigato 阅读全文
posted @ 2013-04-19 16:17 Xdoudou 阅读(2508) 评论(1) 推荐(1) 编辑
摘要: 出现的原因就是你的网页中某个IMG标签加载了一个错误的路径,比如images/pic.jpg 但实际却没有这个图片。解决的办法就是补回图片,或者去掉路径。。。即可 阅读全文
posted @ 2013-04-19 15:23 Xdoudou 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 去除一段文字中的HTML标记 3 /// </summary> 4 /// <param name="Htmlstring"></param> 5 /// <returns></returns> 6 public static string NoHTML(string Htmlstring) 7 { 8 //删除脚本 9 Htmlstring = Regex.Replace(Htmlstring, @"<script[^>]*?>. 阅读全文
posted @ 2013-04-19 09:31 Xdoudou 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1.实现最小宽度min-width标准浏览器和ie7+用:min-width:1008px;这样在实现自适应布局时可以保证布局不小于一定宽度,同时宽屏或窄屏窗口被用户拖窄后不会出现布局自动换行。对于Ie6以下模拟实现用的css表达式:min-width:1008px; _width:expression((documentElement.clientWidth < 1008) ? "1008px" : "auto" );2.最大宽度max-width标准浏览器和ie7+用:max-width:600px;实际中可以对布局元素如divOut{widt 阅读全文
posted @ 2013-04-19 09:07 Xdoudou 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 以下面的格式设定即可min-height:667px; height:auto !important;_height:667px; 阅读全文
posted @ 2013-04-18 16:13 Xdoudou 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 一、下载DD_belatedPNG_0.0.8a-min.js二、编写如下代码1 <!--[if IE 6]>2 <script src="js/DD_belatedPNG_0.0.8a-min.js" type="text/javascript"></script> 3 <script>4 DD_belatedPNG.fix('img,.mbody,.icon,.newrequest,.titleleft,.TellMe');5 </script>6 <![endif]- 阅读全文
posted @ 2013-04-18 13:49 Xdoudou 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30