zoukankan
html css js c++ java
C#子窗口关闭父窗口
父窗口的定义
namespace
Test
{
public
delegate
void
ChildClose();
public
partial
class
Parent : Form
{
private
void
btnLogIn_Click(
object
sender, EventArgs e)
{
Chield ch
=
new
Chield();
ch.closeFather
+=
new
ChildClose(
this
.Close);
ch.Show();
this
.Visible
=
false
;
}
}
}
子窗口的定义:
namespace
Test
{
public
partial
class
Chield : Form
{
public
event
ChildClose closeFather;
public
Chield ()
{
InitializeComponent();
}
private
void
Chield_FormClosed(
object
sender, FormClosedEventArgs e)
{
closeFather();
}
}
}
查看全文
相关阅读:
ElasticSearch——Logstash输出到Elasticsearch配置
ElasticSearch——分词
Kafka——JVM调优
HBase管理与监控——强制删除表
HBase管理与监控——HBase region is not online
HBase管理与监控——内存调优
C#利用WMI获取 远程计算机硬盘数据
防止SQL注入方法总结
C# 将一个DataTable的结构直接复制到另一个DataTable
C# 按位或,按位与, 按位异或
原文地址:https://www.cnblogs.com/pdfw/p/891983.html
最新文章
ELK实践
Logstash 安装配置使用
Filebeat在windows下安装使用
ElasticSearch使用C#操作文档
ElasticSearch数据导入By Postman
Elasticsearch 索引文档的增删改查
javascript
由web程序出现乱码开始挖掘(Bom头、字符集与乱码)
面向对象namespace
面向对象魔术常量
热门文章
php 获取 ip 地址 函数:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details
Thinkphp框架 表单自动验证登录注册 ajax自动验证登录注册
ThinkPHP框架表单验证
ThinkPHP登陆注册
thinkphp使用ajax
ElasticSearch、Logstash管理和监控——blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]
Mysql——常用命令
ElasticSearch——常用命令
ElasticSearch——自定义模板
Copyright © 2011-2022 走看看