2016年12月16日
摘要:
服务端配置文件 访问服务器地址: tcp://127.0.0.1:9100/RemotingService.rem 地址由两部分构成:IP端口 tcp://127.0.0.1:9100/ 以及Uri:RemotingService.rem 客户端测试代码: 由于MarshalByRefObject
阅读全文
posted @ 2016-12-16 11:02
酒歌
阅读(1800)
推荐(0)
2015年10月20日
摘要:
private void button1_Click(object sender, EventArgs e) { //实现窗体抖动的效果 Point first = this.Location; for (int i = 0; i < 50; i++) ...
阅读全文
posted @ 2015-10-20 11:19
酒歌
阅读(464)
推荐(0)
2015年8月21日
摘要:
declare @sql varchar(8000)set @sql='' select @sql=@sql+','+SEQName from M_XT_XLB group by SEQName set @sql=stuff(@sql,1,1,'')--去掉首个','set @sql='se...
阅读全文
posted @ 2015-08-21 11:07
酒歌
阅读(393)
推荐(0)
2015年8月20日
摘要:
转发至http://www.blogjava.net/heting/archive/2010/03/20/315998.htmlC++C#=====================================WORDushortDWORDuintUCHARint/byte大部分情况都可以使用in...
阅读全文
posted @ 2015-08-20 17:31
酒歌
阅读(438)
推荐(0)
2015年7月21日
摘要:
private const int EM_SETCUEBANNER = 0x1501; [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern Int32 SendMessage (Int...
阅读全文
posted @ 2015-07-21 16:20
酒歌
阅读(386)
推荐(0)
摘要:
Ping pingSender = new Ping(); PingReply reply = pingSender.Send("www.baidu.com", 120);//第一个参数为ip地址,第二个参数为ping的时间 if (reply.Status == IPSta...
阅读全文
posted @ 2015-07-21 14:43
酒歌
阅读(348)
推荐(0)
2015年6月23日
摘要:
private void SelectTab() { IntPtr hand1 = FindWindowA(null, "EPSON R330 Series 打印首选项"); if (hand1 != IntPtr.Zero...
阅读全文
posted @ 2015-06-23 09:34
酒歌
阅读(992)
推荐(0)
2015年6月4日
摘要:
static class Program { public static EventWaitHandle ProgramStarted; /// /// 应用程序的主入口点。 /// [STAThread] ...
阅读全文
posted @ 2015-06-04 10:24
酒歌
阅读(777)
推荐(0)
2015年3月17日
摘要:
win7下Process.GetCurrentProcess().Kill();可以直接杀死当前进程。但是在XP下 必须先定义一个进程对象。 Process pr = Process.GetCurrentProcess(); pr.Kill();无语的XP 。
阅读全文
posted @ 2015-03-17 17:40
酒歌
阅读(265)
推荐(0)
2015年1月22日
摘要:
private void CreateDesktop() { string path = this.Context.Parameters["targetdir"]; path = path.Substring(0, path.LastIn...
阅读全文
posted @ 2015-01-22 10:56
酒歌
阅读(774)
推荐(0)