Solved

How do I create and use an additional resource file.

Posted on 2015-02-22
2
124 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

728 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