我有以下代码,它只是打开一个包含 txt 文件的文件夹。
Private Sub OpenTabpageTextFolderToolStripMenuItem_Click( _
ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles OpenTabpageTextFolderToolStripMenuItem.Click
Dim OpenFolder = (RootDrive & "QuickEmailer2\TabTxt")
Process.Start("explorer.exe", OpenFolder)
End Sub
然后用户编辑一个 txt 文件,然后关闭。我想调用我的刷新代码并利用对 txt 文件的更改,但是如果我在 process.start 之后调用,它无需等待即可运行?
我可以使用代码进行这些编辑,但是有 80 个文件可供选择,并且在第一次设置程序时只需要编辑一次(或两次)。
我确信有一段代码说:
Private Sub OpenTabpageTextFolderToolStripMenuItem_Click( _
ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles OpenTabpageTextFolderToolStripMenuItem.Click
Dim OpenFolder = (RootDrive & "QuickEmailer2\TabTxt")
Process.Start("explorer.exe", OpenFolder)
'**I will hang on here while you do your stuff, then I will continue...**
Call RefreshfromAllTxtFiles()
End Sub