#作業(yè)要求
#代碼
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) {
//清除文本框的內(nèi)容
textBox1.Text="";
#效果
圖片發(fā)自簡(jiǎn)書(shū)App