?
Solved

How do I create and use an additional resource file.

Posted on 2015-02-22
2
Medium Priority
?
131 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 2000 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

800 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