[Help]Resources

Posts 110 of 10 · Page 1 of 1
[Help]Resources
Hello , its me again with another question

How can I add resources in my application? Like .txt files and others, so that when I release it, it will just be an .exe file.

And how do I call it out?

Thanks
Code:
Dim myResources As new StringCollection
MyResources.Add("Resource to add.extension")
MyResources.Add("Another Resource")
MyResources.Add("Another Resource")
MyResources.Add("You get the idea")
To embed the resources, just use solution explorer (default should be embedded regardless, but just in case, Or linked..)

Properties of Project --> Resources tab --> Resource view drop-down -->Select Resources --> select persistence property --> change it to embedded

Off top of head, could be missing something.
Thanks for your reply..

But ill be waiting for others replies too
Use the application resources ... [Resources.resx]

Project Properties > Resources. Then drag and drop your resources.

Then, to access the, I think it was something like [myProject.Properties.Resources.ResourceNameWithout ExtensionHereUnlessRenamed]
Thanks for that, I was able to add it to the resources..

Now, how can I copy it and place it in a folder?

Edit: From NextGen1's posts, what does embedding do?


Sorry for the /bump
why bump it?
you have your answer?!
Have you even checked the post before the bump?
I was asking another question
Im never asking you a question again-_-

Now, how can I copy it and place it in a folder?
Thats my 1st question

@lolland thanks for the merge
Solved? Embedding allows you to "embed" your resources into the exe. Linking the resources means using separate folders to hold content/resources and loads them from the file. I think embed is default.

If you have a separate .dll or something, you can is llmerge
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?