Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 如何保存计时器';每次窗体关闭时的时间间隔?Visual Basic_Vb.net - Fatal编程技术网

Vb.net 如何保存计时器';每次窗体关闭时的时间间隔?Visual Basic

Vb.net 如何保存计时器';每次窗体关闭时的时间间隔?Visual Basic,vb.net,Vb.net,嗯,我很难做到这一点,但我确信这与设置有关。我只需要知道代码,以及如果它是布尔值、字符串等,它需要像什么样的设置。谢谢我得到了它,它在这里: 转到窗体的属性,然后转到设置,然后将其设置为整数 代码: 显示您尝试过的内容以及代码不起作用的具体示例。 My.Settings."name" = Timer1.Interval Timer1.Enabled = True Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As S

嗯,我很难做到这一点,但我确信这与设置有关。我只需要知道代码,以及如果它是布尔值、字符串等,它需要像什么样的设置。谢谢我得到了它,它在这里:

转到窗体的属性,然后转到设置,然后将其设置为整数 代码:


显示您尝试过的内容以及代码不起作用的具体示例。
My.Settings."name" = Timer1.Interval
Timer1.Enabled = True

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    My.Settings.Save()
End Sub