呼叫无效 [英] call void

查看:59
本文介绍了呼叫无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有MDI格式-名称f_main
我有3个子表格
-f1
-f2
-f3
在f_main中调用所有形式
但是我怎么能
来自表格f1
以f_main形式显示f2
当关闭f1在mdi中显示f2
<
每个人的共同心思

if i have mdi form -- name f_main
and i have 3 child form
- f1
-f2
- f3
in f_main call all forms
but how i can
from form f1
show f2 in form f_main
when close f1 show f2 in mdi
ook
thnx for everyone

推荐答案

如果您想在表单之间进行交流,以便f_main在f_1做某事时可以起作用,请使用委托将事件挂接到父表单中的方法上,这样,当事件以子形式出现时就会被调用.
If you want to communicate between forms so that f_main can act when f_1 does something, use delegates to hook the events to methods in the parent form, so that it is called when the event occurs in the child form.


ok tanks
你能告诉我例子吗
ok tanks
can you tell me example


这篇关于呼叫无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆