Windows Forms
From Wikipedia, the free encyclopedia
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.
[edit] Hello World Example
The following is a simple C# program using Windows.Forms.
using System.Windows.Forms; using System; public class HelloWorld { [STAThread] public static void Main() { MessageBox.Show("Hello world!"); } }
[edit] See also
- BackgroundWorker
- Swing, the equivalent GUI application programming interface (API) for the Java programming language
[edit] External links
- MSDN: Building Windows Forms applications
- MSDN : Windows.Forms reference documentation
- Official community site
- Code Project: Windows Forms application samples
Architecture: | Common Language Infrastructure • .NET assembly • .NET metadata • Base Class Library |
Common Language Infrastructure: | Common Language Runtime • Common Type System • Common Intermediate Language • Virtual Execution System |
Languages: | C# • Visual Basic .NET • C++/CLI (Managed) • J# • JScript .NET • Windows PowerShell • IronPython • F# |
Windows Foundations: | Presentation • Communication • Workflow • CardSpace |
Related: | Windows Forms • ASP.NET • ADO.NET • .NET Remoting • XAML |
Other Implementations: | .NET Compact Framework • .NET Micro Framework • Shared Source CLI • Portable.NET • Mono |
Comparison: | C# vs. Java • C# vs. VB.NET |