首页 | 主题 | 图库 | 问答 | 文摘 | 原创 | 百科

历史 | 地理 | 人物 | 艺术 | 体育 | 科学 | 音乐 | 电影 | 信息技术 | 世界遗产

 开放、中立,源自维基百科

Personal tools

Windows Forms

From Wikipedia, the free encyclopedia

Jump to: navigation, search

Windows Forms is the name given to the graphical user interface application programming interface (API) included as a part of Microsoft's .NET Framework, providing access to the native Microsoft Windows interface elements by wrapping the existing Windows API in managed code. While it is seen as a replacement for the earlier and more complex C++ based Microsoft Foundation Class Library, it does not offer a paradigm comparable to model-view-controller. Some after-market and third party libraries have been created to address this issue. The most widely used of these is the User Interface Process Application Block, which is released by the Microsoft patterns & practices group as a free download that includes the source code to the core library and quick start examples.

Hello World Example

The following is a simple C# program using Windows Forms. <source lang="csharp"> using System; using System.Windows.Forms;

public class HelloWorld {

  [STAThread]
  public static void Main()
  {
     MessageBox.Show("Hello world!");
  }

} </source>


See also

External links

id:Windows Forms

it:Windows Forms ja:Windows Forms ru:Windows Forms

Languages
AD Links