如何从Winfow调用Page函数? [英] How to call Page function from a Winfow?

查看:108
本文介绍了如何从Winfow调用Page函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在Page中有一个funA()函数,在Window中有一个Button ...那么如何从Window调用Page函数?

I have a function funA() in Page and a Button in Window ... so how to call Page function from a Window?

感谢答案.

推荐答案

嗨!

如果您使用的是WPF,则会在此链接中找到答案:

If you're using WPF, you'll find the answer in this link : https://stackoverflow.com/questions/29120527/how-to-call-a-method-on-mainwindows-from-another-page

如果您是使用Winforms,您可以在以下链接中找到答案:

If you're using Winforms, you'll find the answer in this link : https://stackoverflow.com/questions/6080235/calling-method-on-one-form-from-another-form-fill-combobox-on-form1-if-a-button

希望它会有用.

请 请记住,如果有帮助,请将其标记为答案,这将帮助正在寻找相同或相似问题的解决方案的其他人.

Please remember to mark the replies as answers if they help, this will help others who are looking for solutions to the same or similar problem

在Twitter上关注我: 


这篇关于如何从Winfow调用Page函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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