【发布时间】:2011-09-01 17:49:18
【问题描述】:
在控制台应用程序中是否可以有一个没有按钮的 Msgbox。我想弹出一个消息框,然后在任务完成后消失。或者我可以将 msgboxresult 发送到某种形式的窗口,该窗口会在文件写入后消失?
MsgBox("The users on the domain are being gathered. A prompt will appear when all information has been gathered.")
Dim userFile2 As String = savefileDialog1.FileName & ".txt"
Dim fileExists2 As Boolean = File.Exists(userFile2)
Using sw As New StreamWriter(File.Open(userFile2, FileMode.OpenOrCreate))
For Each d As DirectoryEntry In de.Children()
sw.WriteLine(d.Name)
Next
End Using
【问题讨论】: