我在寫一個VB.NET應用程序,我想從資源加載內部文本文件。 但代碼顯示URI無效:Uri字符串太長。 的代碼是 'document.Load("C:\Users\Sou\Documents\Visual Studio 2010\Projects\info.xml")
document.Load(My.Resources.info)
'some processing job with XML
如何將按鈕的文本用作資源名稱? 我嘗試: Public Sub LlamadaButton(ByVal sender As Object, ByVal e As System.EventArgs)
Dim ButtonN As Button = CType(sender, Button)
Dim ResourceName = ButtonN.Text
ReadDeli
我需要做的是這樣的文本文件資源名稱和文件內容: Private Sub SearchInResources(ByVal PatternSTR As String)
For Each ResourceFile In My.Resources ' Obviously this don't works
If ResourceFile.EndsWith(".txt") Then