zoukankan      html  css  js  c++  java
  • 同机交流

    文本框之间内容的互相传递

     1 namespace exchangeTest
     2 {
     3     public partial class exchange : Form
     4     {
     5         public exchange()
     6         {
     7             InitializeComponent();
     8         }
     9         //往文本框二添加文本框一的内容
    10         private void btnExchange_Click(object sender, EventArgs e)
    11         {
    12             text2.Text = text2.Text + text1.Text;
    13             btnExchange.Enabled = false;
    14             btnExchange0.Enabled = true;
    15             btnExchange.Focus();
    16         }
    17         //往文本框一添加文本框二的内容
    18         private void btnExchange0_Click(object sender, EventArgs e)
    19         {
    20             text1.Text = text1.Text + text2.Text;
    21             btnExchange0.Enabled = false;
    22             btnExchange.Enabled = true;
    23             btnExchange.Focus();
    24         }
    25         //窗体装载,初始化控件,文本框获得输入焦点
    26         private void Form1_Load(object sender, EventArgs e)
    27         {
    28             text1.Text = null;
    29             text2.Text = null;
    30             text1.Focus();
    31         }
    32     }
    33 }
  • 相关阅读:
    sqlilabs 5
    sqlilabs 1-4
    ipset
    kill命令的使用
    docker 札记
    批量删除数据库表中数据行
    正则表达式调试
    TimescaleDB安装学习
    记一次 Centos7 postgresql v11 安装时序数据库 TimescaleDB
    "知识库"
  • 原文地址:https://www.cnblogs.com/Failbs/p/4103927.html
Copyright © 2011-2022 走看看