The Code Project - Writing a Windows Form Application For .NET Fr... Page 1 of 7
Writing a Windos to accomplish this purpose. Most of the
C# core functionality is implemented in the System namespace. For forms application, the
functionality is included in the namespace. Therefore, right at the top of our
source file we need to define these namespaces.
using System;
using ;
We will need some more namespace definitions, but I will explain them as we go along with this
file://I:\MSDN_SHOW\The%20Code%20Project%20-%20Writing%20a%20Window... 4/12/2001The Code Project - Writing a Windows Form Application For .NET Fr... Page 2 of 7
sample application. Like every C# application, Windows Forms application will be defined as a
class. Since we will be making use of the Form class, it needs to be derive from it.
public class WinFileInfo : Form
The next thing that needs to be identified is the entry point for the application. Unlike Win32
applications, the method Main (not WinMain) will be the entry point for this application.
public static void Main ()
{
(new WinFileInfo ());
}
The Application class provides static methods to manage an application like running, closing,
and managing windows messages. In the method
C#编程指南 来自淘豆网m.daumloan.com转载请标明出处.