缘由C#如何实现字符加一个整数得到另一个字符-编程语言-CSDN问答
cs
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 Form1 : Form
{
public Form1()
{
InitializeComponent();
}
TextBox 文本框1 = new TextBox();
TextBox 文本框2 = new TextBox();
TextBox 文本框3 = new TextBox();
private void Form1_Load(object sender, EventArgs e)
{
char a = (char)((int)'a' + 1); this.Text = a.ToString();
this.DoubleClick += new EventHandler(窗体双击);
文本框1.Parent = 文本框2.Parent = 文本框3.Parent = this;
文本框2.Left = 文本框1.Width + 7;
文本框3.Left = 文本框1.Width + 7 + 文本框2.Width + 7;
}
private void 窗体双击(object sender, EventArgs e)
{
文本框3.Text = (int.Parse(文本框1.Text) * int.Parse(文本框2.Text)).ToString();
}
}
}
