C#编写的文本编辑器

来源:百度知道 编辑:UC知道 时间:2024/05/19 00:09:50
要求拿过来就可以运行.写清楚哪个文件名下对应的那些代码.
或者提供可以直接下载到的网站.谢谢!
C#编写的文本编辑器,只需一些word里常用的功能.不用很复杂.

http://www.west263.com/info/html/chengxusheji/C-C--/20080224/14019.html

具体请细看

using System;
using System.Windows.Forms;

namespace hello
{

public class Form1 : System.Windows.Forms.Form
{
private void InitializeComponent()
{
Button button1=new Button();
button1.Text = "我的按钮";
button1.Left = 100;
button1.Top = 100;
this.Text="作业";
Controls.Add(button1);
}

public Form1()
{
InitializeComponent();
}
static void Main()
{
Application.Run(new Form1());
}
}
}

在Visual Studio 2005 命令提示里面输入csc /t:winexe /r:System.Windows.Forms.dll Form1.cs
就可以生成一个.exe的应用程序(你可以吧目标文件放在D盘里面,用记事本做,另存在D盘,记住:后缀是.cs)

你要是不懂可以在Visual Studio 2005 命令提示里面