大小写字母装换器
实现代码:
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 实验2._1
{
public partial class Form1 : Form
{
string s;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
s = textBox1.Text;
string b = s.ToUpper();
textBox1.Text = b;
}
private void button2_Click(object sender, EventArgs e)
{
s = textBox1.Text;
string b = s.ToLower();
textBox1.Text = b;
}
private void button3_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}