当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: ShapedForms http://www
 

 

    摘要: 引言: 任何一个系统都不可能一劳永逸,一直没有错误的运行下去,一个优秀的系统的出错处理也一定是优秀的,而一个好的程序员也一定会很观注可能出错的地方,并作出相应的容错处理。c#中的try catch其实已经为我们省了不少事情,本文并不是并不是对如何做出错处理进行论述的,而是给出一种收集出错信息,并将出错信息存储到windows日志中的方案。 一、处理代码: using syst......
 ·howto:readxmldatafromastream    »显示摘要«
    摘要: 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......


DotNet中不规则窗体的创建方法
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 or a triangle or any shape you want. i discovered tonight you could use regions to in effect clip a window to any shape you want. the effect is almost to look like an active desktop component as you cannot move these shaped windows. having done this and created some animation on your desktop i wonder if you could load a bitmap as the basis for your windows. note you lose the titlebars etc but it looks like a useful technique. here is the source code. apologies if its messy but its been a long night searching for how to do this. i have attached the exe as well for beta 2 enjoy john source code: using system; using system.drawing; using system.collections; using system.componentmodel; using system.windows.forms; using system.data; using system.drawing.drawing2d; namespace shapedform {       /// <summary>       /// summary description for form1.       /// </summary>       public class form1 : system.windows.forms.form       {             private system.windows.forms.timer timer1;             private system.componentmodel.icontainer components;         &n
...   下一页
 ·.net使xml串行化易如反掌    »显示摘要«
    摘要: 人们一直高喊xml是解决系统互联问题的关键, 而.net framework 也为处理xml数据提供了许多不同的类库. xmldocument 类能让你像处理文件一样处理xml 数据, 而xmlreader, xmlwriter, 和它们的派生类使你能够将xml 数据做为数据流处理. xmlserializer 则提供了另外的方法, 它使你能够将自己的对象串行和反串行化为xml. ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE