本文介绍了Visual Studio 2010,在没有任何单击事件的情况下调用表单:批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有多种形式,Form 1,Form2,Form3。

I have multiple forms, Form 1, Form2, Form3.

Form1>有2个按钮,On Button 1点击事件我正在运行批处理文件,在Button2点击事件我正在调用Form2并运行批处理文件。

Form1 > Has 2 buttons, On Button 1 click event I am running a batch file, on Button2 click event I am calling Form2 and running a batch file.

现在我需要做的是调用当bath文件运行时Form3,我的意思是批处理文件运行时没有触发事件。

Now what I need to do is to invoke the Form3 while bath file is running, I mean there is no event that is triggered while batch file is running.

我可以从Windows浴室文件调用Form3吗?或者任何其他选择,请告诉我。

Can I call Form3 from a windows bath file? Or any other alternative, please let me know.

/ Malik

NAMalik

推荐答案

您无法从批处理文件中调用表单,但无论触发批处理文件运行的任何事件都将是该位置调用/显示Form3。

You can not invoke a form from a batch file but whatever event triggered the batch file to run would be the place to invoke/show Form3.


这篇关于Visual Studio 2010,在没有任何单击事件的情况下调用表单:批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 19:27