#作业要求
#代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq; using System.Text;
using System.Windows.Forms;
namespace _1 {
public partial class Form1 : Form {
public Form1() {
InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) {
//向文本框输入"""hello world"
textBox1.Text = "hello world"; }
private void button2_Click(object sender, EventArgs e) {
//清除文本框的内容
textBox1.Text="";
#效果