Vb.Net等待进程30secs

0 vb.net

我点击按钮时会触发三个事件.

在运行第一个事件后,我想等待30秒等待nex事件触发.

我怎么等(我的意思是循环30秒).

谢谢,纳格

Pey*_*row 6

您可以直接尝试使用此代码:

    MessageBox.Show("Test") ' Execute your method 1
    System.Threading.Thread.Sleep(30000)
    MessageBox.Show("Test2") ' Proceed with the other one :)
Run Code Online (Sandbox Code Playgroud)