Solved

How do I create and use an additional resource file.

Posted on 2015-02-22
2
119 Views
Last Modified: 2015-02-23
Experts, How can I have an additional resource file. I want to store fonts in one file and bitmaps in the other. I would like to be able to access them like normally using "My.Resources.MyBitmap". But instead it would be "My.Resources2.MyFont".
0
Comment
Question by:Basicfarmer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40626113
Project...Add New Item. Somewhere in there, depending on your version of Visual Studio, you will find a Resources File. In VS2013 it's in the root of Common Items.

Give it the name you want. Let's name it MyFont for the demonstration. This will create a MyFont.resx file in your project. Simply click on it to add your fonts.

To use it in your code, you use My.Resources.MyFont.<Name of the Font resource>
0
 

Author Closing Comment

by:Basicfarmer
ID: 40626271
Thanks for the solution. That is exactly what I needed.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question