Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个需要将计时器值传递给下一个表单的应用程序。例如Form A超时时间为30秒,如果用户不点击屏幕,它将返回主屏幕。同样转到表格 B。请帮助。谢谢
您需要修改要接受计时器值的页面的构造函数,如下所示:
Public Class FormA Inherits Form Private timerValue As Integer Public Sub New(_timerValue As Integer) timerValue = _timerValue End Sub Public Sub MethodA ' Do something with timerValue here End Sub End Class