WinFrom可视化编程给我们在编程的过程中带来了许多便利,本文将介绍怎么实现一个简单的编辑器。
话不多说直接上效果图和完整代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 简历编辑器
{
public partial class btnColor : Form
{
string file = "jianli.rtf";
public btnColor()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
richTextBox1.Copy();
}
private void btnLoad_Click(object sender, EventArgs e)
{
richTextBox1.LoadFile(file);
}
private void btnSave_Click(object sender, EventArgs e)
{
r