摘要:
shapedforms
http://www.c-sharpcorner.com/graphics/shaped1.jpg
today windows always appear with a rectangular shape. what if you could have a window that was shaped like a circle, a square o......
摘要:
引言:
任何一个系统都不可能一劳永逸,一直没有错误的运行下去,一个优秀的系统的出错处理也一定是优秀的,而一个好的程序员也一定会很观注可能出错的地方,并作出相应的容错处理。c#中的try catch其实已经为我们省了不少事情,本文并不是并不是对如何做出错处理进行论述的,而是给出一种收集出错信息,并将出错信息存储到windows日志中的方案。
一、处理代码:
using syst......
如何控制窗口的关闭事件
public class whoisresult : system.windows.forms.form
{
.............................
private bool tangseng = false;
}
private void initializecomponent()
{
.............................
this.closing += new canceleventhandler(this.whoisresult_cancel);
}
protected void whoisresult_cancel(object sender,canceleventargs e)
{
if(!tangseng)
{
e.cancel = true;
tangseng = true;
 ...
下一页 摘要:
how to: read xml data from a stream
this article discusses a beta release of a microsoft product. the information in this article is provided as-is and is subject to change without notice.
n......