473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

New Resource

Im really stuck on something.

My goal is to get away from Image Lists and to use a Resource file instead.
I followed an example and went to Properties of my project and clicked on
the resource tab.

Here I have found that I can add my images here.
But how do I create a Resource file that has a differnet name...something
like: MyIcons.rsex, so i can just put all my icons in 1 file.

Im finding I am adding the same icons to different image lists on different
forms, and I think this would be way easier to maintain through one file.

I just cant figure out how to add a brand new file name / resource.

Can someone please explain / help start me off in the right direction ?
vb2005 express.

Miro

Feb 7 '07 #1
3 1176
"Miro" <mi******@golden.netschrieb
Im really stuck on something.

My goal is to get away from Image Lists and to use a Resource file
instead. I followed an example and went to Properties of my project
and clicked on the resource tab.

Here I have found that I can add my images here.
But how do I create a Resource file that has a differnet
name...something like: MyIcons.rsex, so i can just put all my icons
in 1 file.

Im finding I am adding the same icons to different image lists on
different forms, and I think this would be way easier to maintain
through one file.

I just cant figure out how to add a brand new file name / resource.

Can someone please explain / help start me off in the right
direction ? vb2005 express.
Just had to find it out, too:

Menu Project -Add new item -Select "text file" and change the file name
to myicons.resx -Ok. The resource editor will open.
Armin

Feb 7 '07 #2
Thank you Armin,

That is what I was looking for.

I have a VB2003 book and it wasnt helpful at all, and I could not find that
simple method on google.

Much Appreciated.

Miro

"Armin Zingler" <az*******@freenet.dewrote in message
news:e9**************@TK2MSFTNGP06.phx.gbl...
"Miro" <mi******@golden.netschrieb
>Im really stuck on something.

My goal is to get away from Image Lists and to use a Resource file
instead. I followed an example and went to Properties of my project
and clicked on the resource tab.

Here I have found that I can add my images here.
But how do I create a Resource file that has a differnet
name...something like: MyIcons.rsex, so i can just put all my icons
in 1 file.

Im finding I am adding the same icons to different image lists on
different forms, and I think this would be way easier to maintain
through one file.

I just cant figure out how to add a brand new file name / resource.

Can someone please explain / help start me off in the right
direction ? vb2005 express.

Just had to find it out, too:

Menu Project -Add new item -Select "text file" and change the file
name to myicons.resx -Ok. The resource editor will open.
Armin

Feb 8 '07 #3
One thing I have noticed - and just to be careful of.

If i go in my solutions explorer and rename it. It messes up, and even by
fixing the file in question manually. Sometimes the Pictures / Icons do not
display anymore. Only solution I found ( which was faster for me ) was to
delete the rsex file and re-create it.

Otherwise, very happy. Works great - solved my problem of having duplicate
icons everywhere.

M.

"Miro" <mi******@golden.netwrote in message
news:eO**************@TK2MSFTNGP04.phx.gbl...
Thank you Armin,

That is what I was looking for.

I have a VB2003 book and it wasnt helpful at all, and I could not find
that simple method on google.

Much Appreciated.

Miro

"Armin Zingler" <az*******@freenet.dewrote in message
news:e9**************@TK2MSFTNGP06.phx.gbl...
>"Miro" <mi******@golden.netschrieb
>>Im really stuck on something.

My goal is to get away from Image Lists and to use a Resource file
instead. I followed an example and went to Properties of my project
and clicked on the resource tab.

Here I have found that I can add my images here.
But how do I create a Resource file that has a differnet
name...something like: MyIcons.rsex, so i can just put all my icons
in 1 file.

Im finding I am adding the same icons to different image lists on
different forms, and I think this would be way easier to maintain
through one file.

I just cant figure out how to add a brand new file name / resource.

Can someone please explain / help start me off in the right
direction ? vb2005 express.

Just had to find it out, too:

Menu Project -Add new item -Select "text file" and change the file
name to myicons.resx -Ok. The resource editor will open.
Armin


Feb 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
5
by: John Perks and Sarah Mount | last post by:
When handling resources in Python, where the scope of the resource is known, there seem to be two schools of thought: (1) Explicit: f = open(fname) try: # ... finally: f.close()
5
by: Drew | last post by:
Assembly asm = Assembly.GetExecutingAssembly(); me = new Bitmap(asm.GetManifestResourceStream("me.gif")); I have used this before without any problem, but now I get: An unhandled exception...
0
by: Johann Blake | last post by:
I'm having trouble grasping how ASP.NET correctly locates resources. There is plenty of documentation on this subject but some things are not clear at all. In my ASP.NET application, I have...
7
by: craig | last post by:
....quick question for anyone who might have some experience with .net resource files in VS 2003. I have an application that is not localized, but I would still like to be able to place all of...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
2
by: WT | last post by:
Hello, Could we use 'Embedded resources' with resx files that contain text resources used in aspx pages with the syntaxe: Text="<%$ Resources:ResourcesMy,KEY1 %>" I tryed removing the...
21
by: DiAvOl | last post by:
Hello, I am using a simple php server that I wrote and have some questions related to the resource id's. When a new client connects to the server or the server opens a file the Resource id...
12
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
0
by: CSharper | last post by:
Just curious, When you are in IDE, you are able to add a resource to the project through resource tab. Later this resource can be accessed using the resource manager. One good thing about this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.