上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: PictureBoxold=null; privatevoidpictureBox2_Click(objectsender,EventArgse) { PictureBoxp=(PictureBox)sender; if(p==old)return; if(old!=null) { old.Widt... 阅读全文
posted @ 2014-11-24 17:52 armyfai 阅读(2781) 评论(0) 推荐(0) 编辑
摘要: //引用命名空间 using System.Drawing.Imaging; using System.Drawing; using System.Drawing.Drawing2D;?#region GetPicThumbnail /// /// 无损压缩图片 /// /// 原图片 /// ... 阅读全文
posted @ 2014-11-20 15:22 armyfai 阅读(338) 评论(0) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace threaddemo{ class Program { ... 阅读全文
posted @ 2014-10-30 14:36 armyfai 阅读(208) 评论(0) 推荐(1) 编辑
摘要: C#中byte[]与string的转换 1、 System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding(); byte[] inputBytes =converter.GetBytes(inputString); ... 阅读全文
posted @ 2014-10-30 08:53 armyfai 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 概述最近学习FileSystemWatcher的用法,它主要是监控一个文件夹,当文件夹内的文件要是有更改就要记录下来,我就整理下我对FileSystemWatcher 的理解和用法.FileSystemWatcher 用法在应用FileSystemWatcher对象之前,你必须了解这个对象的一些基本... 阅读全文
posted @ 2014-10-25 16:26 armyfai 阅读(13537) 评论(0) 推荐(1) 编辑
摘要: 首先打开注册表:运行-regedit:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\Wds\Repwd\Tds\Tcp键项的 PortNumber的数值数据就是使用的端口,默认值为3389(十进制),可以修改成其... 阅读全文
posted @ 2014-10-14 09:55 armyfai 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 本文参考自《delphi2010语法手册》1. 工程文件结构源文件联系着unit单元,delphi主模块源文件格式为.dpr,其他模块为.pas,一个完整程序由一个.dpr和若干.pas组成。2..dpr 程序结构一个.dpr由程序头、[use从句]、主程序块组成。一个典型工程文件如下:1 prog... 阅读全文
posted @ 2014-10-08 10:09 armyfai 阅读(3187) 评论(0) 推荐(0) 编辑
摘要: SVN简介:为什么要使用SVN?程序员在编写程序的过程中,每个程序员都会生成很多不同的版本,这就需要程序员有效的管理代码,在需要的时候可以迅速,准确取出相应的版本。Subversion是什么? 它是一个自由/开源的版本控制系统,一组文件存放在中心版本库,记录每一次文件和目录的修改,Subversio... 阅读全文
posted @ 2014-09-22 11:15 armyfai 阅读(522244) 评论(66) 推荐(150) 编辑
摘要: Attribute:$(”p”).addClass(css中定义的样式类型); 给某个元素添加样式$(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值,参数是map$(”img”).attr(”src”,”test.jpg”); ... 阅读全文
posted @ 2014-09-17 11:15 armyfai 阅读(1861) 评论(0) 推荐(0) 编辑
摘要: 一、基础1、说明:创建数据库CREATE DATABASE database-name2、说明:删除数据库drop database dbname3、说明:备份sql server---创建 备份数据的deviceUSE masterEXEC sp_addumpdevice 'disk', 'tes... 阅读全文
posted @ 2014-09-17 10:03 armyfai 阅读(2306) 评论(0) 推荐(2) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页