是否有可能在控制台应用程序中没有按钮的Msgbox。我想弹出msgbox,然后在任务完成时消失。或者我可以将msgboxresult发送到某种形式的窗口,当文件被写入时它会消失?Msgbox等待,VB.NET
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
......你忘了提及他应该在非模态状态下打开表格。 – 2011-05-25 12:41:08
为什么在.NET 4.0中使用winforms? – Jodrell 2011-05-25 13:05:06
@Jodrell:我的大部分经验都在WinForms中,所以我会自动将它用于这样一个小应用程序,因为WPF或WinForms并没有真正为此做出太多改变。 – 2011-05-25 13:53:21