0
我想要顯示的目錄,但在MessageBox顯示這樣的:系統.__ ComObjectVisualStudio的 - 我怎麼能一個對象內容轉換爲字符串
Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
filesystem = CreateObject("Scripting.FileSystemObject")
ThisDir = filesystem.GetFolder("F:\-=Temporal=-\Documentos\DVD Temazos\")
'1st try
MessageBox.Show(ThisDir.ToString())
'2nd try
Dim a As String = CType(ThisDir, String)
MessageBox.Show(a)
end sub
什麼,我做錯了什麼?
三江源
爲什麼使用這種舊的COM技術?看看.NET – Jan