博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年4月22日

摘要: Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of e-mail to support: Text in character sets other than ASCII Non-text attachments Message bodies with mult... 阅读全文

posted @ 2011-04-22 17:26 Fung Gor 阅读(436) 评论(0) 推荐(0)

摘要: 简介: Lucene 是一个基于 Java 的全文检索工具包,你可以利用它来为你的应用程序加入索引和检索功能。Lucene 目前是著名的 Apache Jakarta 家族中的一个开源项目,下面我们即... 阅读全文

posted @ 2011-04-22 16:24 Fung Gor 阅读(189) 评论(0) 推荐(0)

摘要: using System;using System.ComponentModel;using System.Drawing;using System.Threading;using System.Windows.Forms;namespace BackgroundWorkerExample{ public class Form1 : Form { public Form1() { InitializeComponent(); } private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { // Do not 阅读全文

posted @ 2011-04-22 11:56 Fung Gor 阅读(235) 评论(0) 推荐(0)

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Threading;using System.Windows.Forms;using System.Xml;public class Form1 : Form{ private BackgroundWorker backgroundWorker1; private Button downloadButton; private ProgressBar progressBar1; pr 阅读全文

posted @ 2011-04-22 11:53 Fung Gor 阅读(251) 评论(0) 推荐(0)

摘要: using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Threading;using System.Windows.Forms;namespace BackgroundWorkerExample{ public class FibonacciForm : System.Windows.Forms.Form { private int numberToCompute = 0; private int highestPercentageReached = 阅读全文

posted @ 2011-04-22 11:50 Fung Gor 阅读(229) 评论(1) 推荐(0)

摘要: Visual Studio 2010 Other Versions The C# language's exception handling features help you deal with ... 阅读全文

posted @ 2011-04-22 11:40 Fung Gor 阅读(210) 评论(0) 推荐(0)

摘要: IntroductionOne of the things that impressed me when I first started learning .NET was its enhanced exception-handling functionality. By this I mean such features as easy access to the type of exception thrown, full stack trace and inner exceptions. This makes it easy to still get full information i 阅读全文

posted @ 2011-04-22 11:33 Fung Gor 阅读(214) 评论(0) 推荐(0)

摘要: ContentsIntroductionPlan for the worst Check it earlyDon't trust external dataThe only reliable devices are: the video, the mouse and keyboard.Writes can fail, tooCode Safely Don't throw new Exception()Don't put important exception information on the Message fieldPut a single catch (Exce 阅读全文

posted @ 2011-04-22 11:31 Fung Gor 阅读(207) 评论(0) 推荐(0)

摘要: 对话框 Dialog Boxes 目录[隐藏] 1 这样的用户界面是否正确? 2 设计理念 3 使用模式 4 设计规范 4.1 常规 4.2 模式对话框 4.3 无模式对话框 4.4 多个对话框 4.... 阅读全文

posted @ 2011-04-22 11:27 Fung Gor 阅读(1131) 评论(0) 推荐(0)

摘要: 我们在做winform应用的时候,大部分情况下都会碰到使用多线程控制界面上控件信息的问题。然而我们并不能用传统方法来做这个问题,下面我将详细的介绍。 首先来看传统方法:public partial class Form1 : Form{public Form1(){InitializeComponent();}private void Form1_Load(object sender, Event... 阅读全文

posted @ 2011-04-22 11:25 Fung Gor 阅读(202) 评论(0) 推荐(0)

摘要: 理论上,可以使用FileStream类读取和显示文本文件。前面已经介绍了这个类。上面显示NewFile.txt文件的格式不太容易理解,但这并不是FileStream类的问题——而在于我们在文本框中显示... 阅读全文

posted @ 2011-04-22 11:20 Fung Gor 阅读(1039) 评论(1) 推荐(0)

摘要: 想必大部分网友都使用过QQ、MSN等聊天程序,它们的界面都相当华丽,尤其是当网友上线以及消息提示时会有一个浮动的窗体从屏幕的右下方缓慢升起,既美观又人性化, 作为程序员在享受的同时我们也不禁要问:这到... 阅读全文

posted @ 2011-04-22 11:05 Fung Gor 阅读(737) 评论(1) 推荐(0)