不同窗体间如何发送消息 问个问题,求帮忙.C#中一个窗体如何向另外一个窗体发送消息.比如按下窗体A中的按钮时,如何发送一个消息给窗体B,执行窗体B中的按钮被按下的效果谢一个先. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 将窗体B的按钮设为public static ,按下A窗体的按钮时调用B的static 按钮 (1)you can send message by event. you can define an event and then trigger it, hehe(2)I think the solution is the best solution, if you do not like it, maybe you can invoke API to send the message 使用system.windows.form空间下的beginInvoke方法,在子窗体中添加一个委托,然后在父窗体添加处理函数,然后再将父窗体的处理函数添加到子窗体的委托中,具体的操作可以看msdn,里面有详细的讲解. 关于C#读取flash问题!! 请教~如何将从Access返回的多行数据存入一个array 一个简单的socket问题? c#如何调用dll里面的事件? 拒絕存取路徑問題? 如何动态的执行c#语句 TeeChart控件 .net中控件传参 Page.IsValid由谁决定? 这两天很忙,暂别csdn,各位c#版的同仁们多保重! 在winform中如何关闭子窗体后返回数据执行父窗体的一个方法啊? 两个简单的问题,是关于vs2003设置方面的
(2)I think the solution is the best solution, if you do not like it, maybe you can invoke API to send the message
msdn,里面有详细的讲解.