摘要: //屏幕宽 int iWidth = Screen.PrimaryScreen.Bounds.Width; //屏幕高 int iHeight = Screen.PrimaryScreen.Bounds.Height; //按照屏幕宽高创建位图 Image img = new Bitmap(iWid 阅读全文
posted @ 2017-04-13 19:47 Mr.石 阅读(11279) 评论(0) 推荐(1)
摘要: 在方法参数传递中,可以同时使用ref和out关键字,但是要注意ref和out参数传递的不同。 using System;class Program{static void Main(){ Program obj = new Program(); int score = 55; //声明原来分数 in 阅读全文
posted @ 2017-04-13 19:46 Mr.石 阅读(2595) 评论(0) 推荐(0)
摘要: 首先,通过代码定义一个委托和下面三个示例将要调用的方法: /*添加的命名空间using System.Threading;using System.Runtime.Remoting.Messaging;*/ public delegate int AddHandler(int a,int b); p 阅读全文
posted @ 2017-04-13 19:43 Mr.石 阅读(314) 评论(0) 推荐(0)
摘要: 一、asp.net中导出Execl的方法:在asp.net中导出Execl有两种方法,一种是将导出的文件存放在服务器某个文件夹下面,然后将文件地址输出在浏览器上;一种是将文件直接将文件输出流写给浏览器。在Response输出时,/t分隔的数据,导出execl时,等价于分列,/n等价于换行。 1、将整 阅读全文
posted @ 2017-04-13 19:38 Mr.石 阅读(5771) 评论(0) 推荐(0)
摘要: 所需引用的JS: 在http://www.malsup.com/jquery/form/#download 下载:http://malsup.github.com/jquery.form.js 在http://jquery.com/ 下载:http://code.jquery.com/jquery- 阅读全文
posted @ 2017-04-13 19:36 Mr.石 阅读(1208) 评论(0) 推荐(0)