Groups
Groups
Sign in
Groups
Groups
C# Guide
Conversations
About
Send feedback
Help
C#作业样本⑵-- GUI
1 view
Skip to first unread message
bluefin
unread,
Jun 6, 2008, 4:38:30 PM
6/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to C# Guide
(注:以下教程适合初学者,介绍C#。下载.NET Framework 2.0 版本到你的Windows
2000 SP4 或者Windows XP SP2。)
①打开notepad.exe
②输入以下内容:
using System.Windows.Forms;
public class FirstFrm : Form
{
public static void Main( string [ ] args )
{
FirstFrm frmHello = new FirstFrm ( );
Application.Run ( frmHello );
}
}
③储存名档为FirstFrm.cs
④进入"C:\Windows\Microsoft.NET\Framework\v2.0.50727" 里头,执行csc.exe
如下:
csc.exe FirstFrm.cs [ 回车键 ]
这时它会显示以下讯息:
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
⑤输入dir firstfrm.*
这时它会显示以下讯息:
FirstFrm.cs
FirstFrm.exe
注:若你见不到FirstFrm.exe, 你一定要先除错FirstFrm.cs,一直得到为止。
⑥输入firstfrm.exe
祝你学习愉快!
Reply all
Reply to author
Forward
0 new messages