【c#窗体荔枝计算乘法,两数相乘】2022-10-6

缘由c#计算乘法,两数相乘-编程语言-CSDN问答

缘由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();
        }
    }
}
相关推荐
IT探索8 分钟前
Linux 查找文件指令总结
linux·算法
sulikey24 分钟前
个人Linux操作系统学习笔记11 - 环境变量
linux·笔记·学习
Lumos1861 小时前
51单片机从零到实战(完结)——后续学习路线建议
算法
暗暗别做白日梦1 小时前
Pulsar 消息同步机制
c#·linq
稚南城才子,乌衣巷风流1 小时前
DFS序详解:原理、应用与实现
算法·深度优先·图论
稚南城才子,乌衣巷风流1 小时前
动态树(Dynamic Tree)数据结构详解
数据结构·算法
海盗12341 小时前
微软技术周报——2026-07-22
microsoft·c#·.net
海盗12341 小时前
微软技术日报 ——2026-07-21
microsoft·c#·.net
-银雾鸢尾-1 小时前
C#中的泛型约束
开发语言·c#
依然范特东1 小时前
强化学习笔记2--bellman equation
人工智能·笔记