0
劑量任何人都知道我可以解決這個「不支持異常」?VB.NET「不支持異常」?
'Amends label2 to file name as text (works in conjunction with PART 00-AB form1)...
Label2.Text = "Project: " & Form1.Label5.Text & " could not be found"
'sugesting other related files in the folder...
Dim di As New IO.DirectoryInfo("v:\" & Label2.Text & "\Tekeningen\Tekenwerk De Mar\Definitief\" & Label2.Text & ".PDF")
Dim diar1 As IO.FileInfo() = di.GetFiles()
Dim dra As IO.FileInfo
For Each dra In diar1
If System.IO.Path.GetExtension(dra.Name).ToLower() = "pdf" Then
ListBox1.Items.Add(dra)
End If
Next
End Sub
那麼哪條線拋出異常? (這裏的內容是什麼 - 網絡應用程序?WinForms?) – 2013-02-18 07:19:58
oops Dim di As New IO.DirectoryInfo(「v:\」&Label2.Text&「\ Tekeningen \ Tekenwerk De Mar \ Definitief \」&Label2.Text&「 .PDF「)其winform – 2013-02-18 07:21:33
你真的有一個.pdf擴展名的目錄? – 2013-02-18 07:31:22