【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();
        }
    }
}
相关推荐
weixin_470740363 分钟前
某算法的python执行汇编
汇编·python·算法
是乐谷1 小时前
燧原科技招大模型训练算法工程师
科技·算法
海绵宝宝汉堡包1 小时前
c# 项目 文件夹
开发语言·c#
YuTaoShao1 小时前
【LeetCode 热题 100】139. 单词拆分——(解法一)记忆化搜索
java·算法·leetcode·职场和发展
小马学嵌入式~2 小时前
数据结构:队列 二叉树
c语言·开发语言·数据结构·算法
曹牧4 小时前
C#:窗体间传值
c#
焊锡与代码齐飞4 小时前
嵌入式第三十五课!!Linux下的网络编程
linux·运维·服务器·开发语言·网络·学习·算法
省四收割者4 小时前
Go语言入门(10)-数组
数据结构·经验分享·笔记·vscode·算法·golang
lxmyzzs4 小时前
【图像算法 - 21】慧眼识虫:基于深度学习与OpenCV的农田害虫智能识别系统
人工智能·深度学习·opencv·算法·yolo·目标检测·计算机视觉
KeithTsui5 小时前
GCC C语言整数转换的理解(Understanding of Integer Conversions in C with GCC)
c语言·开发语言·算法