Solved

How do I create and use an additional resource file.

Posted on 2015-02-22
2
113 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
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
Comment Utility
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
Comment Utility
Thanks for the solution. That is exactly what I needed.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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.
This article will show, step by step, how to integrate R code into a R Sweave document
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now