Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I create and use an additional resource file.

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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The viewer will learn how to implement Singleton Design Pattern in Java.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
Suggested Courses

604 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