<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Windows_Forms</id>
	<title>Windows Forms - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Windows_Forms"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Windows_Forms&amp;action=history"/>
	<updated>2026-07-01T10:58:28Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Windows_Forms&amp;diff=122161&amp;oldid=prev</id>
		<title>imported&gt;Peterxy：​加入{{Expand language}}标记</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Windows_Forms&amp;diff=122161&amp;oldid=prev"/>
		<updated>2025-06-14T01:34:35Z</updated>

		<summary type="html">&lt;p&gt;加入{{&lt;a href=&quot;/index.php?title=Template:Expand_language&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:Expand language（页面不存在）&quot;&gt;Expand language&lt;/a&gt;}}标记&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Expand language|1=en|time=2025-06-14T01:34:35+00:00}}&lt;br /&gt;
{{noteTA|G1=IT}}&amp;#039;&amp;#039;&amp;#039;Windows Forms&amp;#039;&amp;#039;&amp;#039;是微软的[[.NET]]開發框架的[[圖形用戶介面]]的一部分，該組件透過將現有的[[Windows API]]（Win32 API）封裝为[[托管代碼]]提供了對[[Windows]]本地（native）组件的訪問方式。雖然該組件看起來是為先前較複雜的基於[[C++]]的[[微軟基礎類庫]]（Microsoft Foundation Classes，MFC）的替代品，但是它沒有提供與[[Model View Controller]] &amp;quot;Document/View&amp;quot;架構相應的特色。&amp;quot;Document/View&amp;quot;架構已經被「[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsFormClassIsMdiContainerTopic.asp MDI]（多文檔介面）」所取代。&lt;br /&gt;
&lt;br /&gt;
該實現位於.NET框架的&amp;lt;code&amp;gt;System.Windows.Forms&amp;lt;/code&amp;gt;命名空間，並且它試着糾正自己在[[Windows XP]]背景之下扮演的角色。然而，許多有關於標籤表格與控制單元置於標籤表格上的支援性的顯著問題懸而待決。&lt;br /&gt;
&lt;br /&gt;
許多非微軟官方實現的.NET框架，如[[Mono開發平台]]，提供了Windows Forms的實現。&lt;br /&gt;
&lt;br /&gt;
微软在.Net 3.0中发行了支持视频加速的[[Windows Presentation Foundation]]（简称WPF）作为Windows Forms的替代版本，但是WPF不能完全取代Windows Forms，很多时候仍需要和Windows Forms互操作。&lt;br /&gt;
&lt;br /&gt;
== Hello World範例 ==&lt;br /&gt;
下面是使用Windows Forms的一個簡單程式，由[[C Sharp|C#]]语言编写。&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class HelloWorld&lt;br /&gt;
{&lt;br /&gt;
    public static void Main() &lt;br /&gt;
   {&lt;br /&gt;
       MessageBox.Show(&amp;quot;Hello world!&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 外部链接 ==&lt;br /&gt;
* [http://webarchive.loc.gov/all/20061007160228/http://www.windowsforms.net/ 官方社群站點（英）]&lt;br /&gt;
* [https://web.archive.org/web/20051205193009/http://msdn.microsoft.com/netframework/programming/winforms/ MSDN：建立Windows Forms应用程序（英）]&lt;br /&gt;
* [https://web.archive.org/web/20060422180412/http://www.codeproject.com/vb/net/#Windows+Forms Code Project: Windows Forms应用程序範例（英）]&lt;br /&gt;
&lt;br /&gt;
{{DotNET}}&lt;br /&gt;
{{Windows-stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:.NET]]&lt;br /&gt;
[[Category:部件工具箱]]&lt;br /&gt;
[[Category:微軟API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Peterxy</name></author>
	</entry>
</feed>