English 中文(简体)
注表格中文本文档格式的期初资源
原标题:Opening Resources in Text File Format in Notepad

我感到有些麻烦的是使用资源档案。

In my project I m using a bunch of bitmap files and two txt files. Bitmaps are used as backgrounds for controls, but .txt files I want to open in Notepad or WordPad. Till now I was accesing them from a file path on my machine:

ControlName.backgroundimage = New Bimap(direcorypath &>

<>Process.Start(direcorypath &>/Instrukcje.txt>

And it worked fine. Now I added these files to my resources (it s practical for me to have them in executable file) And replaced those lines with:

ControlName.backgroundimage = New Bimap(My Project)。 My.Resources.Map (

Process.Start(My Project.My.Resources.Instrukcje)

For bitmap it works fine, but for txt file an error occurs saying that a file cannot be found. Interestin thing is: when I type "MyProject.My.Resources.Instrukcje" in "Watch" it shows the content of the file. So it is there, only not as a file? I think I am missing something here
I searched everywhere whats the thing, but couldn t find anything helpful. I will be gratefil for some clues. (And sorry if somethings unclear, my programming skills are much worse than my not-so-good English) Thanks:)

最佳回答

资源的根植于你的文件或文件,因此不能用程序类别获得。 您可以把t子资源写到一个从中到使用的过程,以开始其时间档案。

附加信息:我用手工艺添加了1.txt文档。 用于测试你问题的参考文件,而平原文本则储存在资源档案中。 因此,如果你获得资源(InsertYourTextFilesName)财产,将归还文本档案中的案文。

如果你可能想知道:双向档案(例如,非解释性文字档案)储存在资源中是星体。 酌情在汇编的大会范围内进行转售。

问题回答

暂无回答




相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签