C#字符串大小写转换

C#字符串大小写转换_第1张图片C#字符串大小写转换_第2张图片

		string s;
        private void button1_Click(object sender, EventArgs e)
        {
            s = textBox1.Text;
            string s1 = s.ToUpper();
            textBox1.Text = s1;
            
         }

        private void button2_Click(object sender, EventArgs e)
        {
            s = textBox1.Text;
            string s1 = s.ToLower();
            textBox1.Text = s1;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

你可能感兴趣的:(C#)