博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
winForm 程序开发界面参数传递
阅读量:4568 次
发布时间:2019-06-08

本文共 1074 字,大约阅读时间需要 3 分钟。

1.

[csharp]
 
 
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.ComponentModel;  
  4. using System.Data;  
  5. using System.Drawing;  
  6. using System.Linq;  
  7. using System.Text;  
  8. using System.Threading.Tasks;  
  9. using System.Windows.Forms;  
  10.   
  11. namespace WindowsFormsApplication2  
  12. {  
  13.     public partial class Form1 : Form  
  14.     {  
  15.         public Form1()  
  16.         {  
  17.             InitializeComponent();  
  18.         }  
  19.   
  20.         private void ButtonClickMethod(object sender, EventArgs e)  
  21.         {  
  22.             this.nextForm = new Form2(this);  
  23.             this.nextForm.Show();  
  24.         }  
  25.   
  26.         private Form2 nextForm;  
  27.   
  28.         private void checkBox1_Click(object sender, EventArgs e)  
  29.         {  
  30.             this.nextForm.Close();  
  31.         }  
  32.     }  
  33. }  

2.

[csharp]
 
 
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.ComponentModel;  
  4. using System.Data;  
  5. using System.Drawing;  
  6. using System.Linq;  
  7. using System.Text;  
  8. using System.Threading.Tasks;  
  9. using System.Windows.Forms;  
  10.   
  11. namespace WindowsFormsApplication2  
  12. {  
  13.     public partial class Form2 : Form  
  14.     {  
  15.         public Form2(Form1 f)  
  16.         {  
  17.             this.prevForm = f;  
  18.             InitializeComponent();  
  19.         }  
  20.   
  21.         private Form1 prevForm;  
  22.   
  23.         private void button1_Click(object sender, EventArgs e)  
  24.         {  
  25.               
  26.         }  
  27.     }  
  28. }  

转载于:https://www.cnblogs.com/gc2013/p/3937719.html

你可能感兴趣的文章
tex中把参考文献标题删除
查看>>
Linux下NFS服务器的搭建与配置
查看>>
1501 二叉树最大宽度和高度
查看>>
Linux学习总结(七)-磁盘管理 du df fdisk
查看>>
Oracle卸载
查看>>
知识总结
查看>>
xml解析中的sax解析
查看>>
《秋季学期学习总结》
查看>>
PHP手册总结《预定义变量》
查看>>
addEventListener和on的区别
查看>>
hust 1570 Lazy. Lazy. Laaaaaaaaaaaazy!
查看>>
曹政解密中国互联网
查看>>
一个JS的面试题及其解析
查看>>
python小白-day5 time&datetime模块
查看>>
使用c++实现一个FTP客户端(三)
查看>>
ffmpeg 转换VC工具已经可以生成工程文件(续)
查看>>
OpenGL + C++ + Java
查看>>
UOJ #15 虫洞路线
查看>>
一些较好的书
查看>>
绑定一个值给radio
查看>>