C# Windows Form with VS2008 IDE

1 view
Skip to first unread message

bluefin

unread,
Aug 4, 2008, 8:51:32 PM8/4/08
to C# Guide
Let's generalise a project for creating an application with a Windows
Forms UI that uses .NET Framework 2.0 runtime.

Launch Microsoft Visual Studio 2008 shortcut, then press Ctrl-Shift-N,
then Visual C# (project type), then Windows Forms Application
(templates), then WindowsFormsApplication1 (project name & solution
name), and then OK (to create a new project).

On the left, you will see Form1.cs under Design environment. On the
right, there are files and folders appeared under
WindowsFormsApplication1 in Solution Explorer:-

[x] Properties
-- AssemblyInfo.cs
-- Resources.resx
=== Resources.Designer.cs
-- Settings.settings
=== Settings.Designer.cs

[x] References
-- System
-- System.Data
-- System.Deployment
-- System.Drawing
-- System.Windows.Forms
-- System.Xml

[x] Form1.cs
-- Form1.Designer.cs

[x] Program.cs


To run the program by pressing Ctrl-F5. You should see a Windows Form
appearing on top left of the computer screen where you will find an
application icon, Form1, minimum, maximum, close buttons, and a blank
dialog box. To close the dialog box by pressing Alt-F4.

To close the solution and quit the IDE by pressing Alt-F4.

Now, launch Microsoft Visual Studio 2008 shortcut again. Press Ctrl-
shift-O, then double-click WindowsFormsApplication1, then
WindowsFormsApplication1.sln, and then Open (to open existing
project).

For practise, try to run the program, and later close the solution and
IDE altogether.

THE END
Reply all
Reply to author
Forward
0 new messages