如何从Winfow调用Page函数? [英] How to call Page function from a Winfow?
问题描述
大家好,
我在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?
感谢答案.
推荐答案
嗨!
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.
这篇关于如何从Winfow调用Page函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!