09 2011 档案

摘要:1. C#开发C/S程序,有时需要几个端,如服务器端,管理端,客户端等等, 端与端之间是不同线程或者进程,这就涉及跨线程调用的问题, 使用委托或者异步线程是必不可少的,这里是一个简单的委托线程,即通过委托调用另外一个线程;2. 有图有真相: 3. 源码:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSyste.. 阅读全文
posted @ 2011-09-28 23:52 Marksion 阅读(309) 评论(0) 推荐(0)
摘要:1. 主题:C#开发当中,多线程很多时候都必不可少的,尤其有处理多任务的情况下;2. 有图有真相:3.源码:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading;namespaceThreadExample{publicpartialclassForm1:Form{StringBuild 阅读全文
posted @ 2011-09-28 23:42 Marksion 阅读(307) 评论(0) 推荐(0)
摘要:一年多没接触C#开发了,复习一下Winform方面的知识:C#开启、关闭进程,获取进程列表;有图有真相:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.ComponentModel;4usingSystem.Data;5usingSystem.Drawing;6usingSystem.Text;7usingSystem.Windows.Forms;8usingSystem.Diagnostics;9usingSystem.Threading;1011namespaceProcessExample12{1314publicp. 阅读全文
posted @ 2011-09-28 23:29 Marksion 阅读(2566) 评论(2) 推荐(0)
摘要:Flex4 ButtonBar 双击出现异常,意外吧,看看运行效果就明白了<?xmlversion="1.0"encoding="utf-8"?><!--dpcontrols\sparkdpcontrols\SparkBBarEvent.mxml--><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark"xmlns:mx="library 阅读全文
posted @ 2011-09-23 15:00 Marksion 阅读(448) 评论(0) 推荐(0)
摘要:用Group用多,感觉挺方便的,就 经常遇到 addChild, addElement 纠结性,还有图形等等;不过后来遇上 BorderContainer,相应解决好很一些美化方面的问题,它都帮你封装好了,太爽了;突然发发现,它本来就是白色背景的,也没设置 背景透明度的 backgroundAlpha, 查看API,原来里面有秘方:嘿嘿, 看代码就明白了:1<s:BorderContainerwidth="48"2 height="41"3 id="bc4"4 borderVisible="false"> 阅读全文
posted @ 2011-09-22 15:04 Marksion 阅读(2539) 评论(0) 推荐(0)
摘要:今天碰到这样的问题,正好前段时间解决, 出现题目的异常,多是引用第三方控件引起的。 在NEW时,需要初始化该对象。 AxESACTIVEXLib.AxESActiveX ax = new AxESACTIVEXLib.AxESActiveX(); ((System.ComponentModel.ISupportInitialize)(this.ax)).BeginInit(); this.Controls.Add(ax); ((System.ComponentModel.ISupportInitialize)(this.ax)).EndInit(); 这样就OK了。 阅读全文
posted @ 2011-09-08 15:55 Marksion 阅读(26782) 评论(6) 推荐(3)