469,133 Members | 1,443 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

Embedded resources and extended namespaces

Hi there!

I did not know, where this topic fits in, so I put it here.

I have a minor problem with embedded resources, which puzzles me quite a
lot. I'd be glad if anyone can help me on this:

I've added a few files (images) to an assembly as embedded resources.
Within the project folder these files are in a subfolder named "images".

Now while trying to access them I expected to get them this way:
RootNameSpace.NameOfSubfolder.FileName
i.e.:
NameSpaceOfMyProject.Images.MyImage.jpg

This is how it is explained in here:
Understanding Embedded Resources in Visual Studio .NET
http://www.codeproject.com/dotnet/embeddedresources.asp
But what I experience under VB.NET, ist that it is not possible to organize
embedded resources this way - meaning: the name space won't extend by the
name of the subfolder.

It's just this way:
RootNameSpace.FileName
i.e.:
NameSpaceOfMyProject.MyImage.jpg

This behavoir fits more to what is discribed this article:
How to Embed Resource Files in .NET Assemblies (cont'd)
http://www.devx.com/dotnet/Article/10831/0/page/2

Ok, so far you'd might think, that one of the authors is wrong.
But the answer is: No, they both seem to be right!

I have downloaded and tried a C#-example from Eric Woodroff:
A Resource Server Handler Class For Custom Controls
http://www.codeproject.com/useritems...edded%7Cresour
ce

As you can see there, the namespace extends, as expected first.

This drives me nuts!!!
*bangingheadtowall*
;-)

Is there a difference how VB.NET and C# handle embedded Resources?
Did I forget to configuere something?
Did I misunderstand something?

Please help me - otherwise I go crazy and won't come back!! ;-)

Thanx!

Philipp Seidel

(P.S.: Actually this is kind of a crossposting. I posted this subject last
week in microsoft.public.dotnet.framework.aspnet.buildingc ontrols and was
probably kind of offtopic there, since no one answered. Sorry for that!)


Jul 19 '05 #1
1 2881
I'm just too stupid!!!!!
Sorry!!!

Philipp Seidel
(the one who goes hiding in the cellar now)
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Philipp Seidel | last post: by
5 posts views Thread by Drew | last post: by
reply views Thread by Chris Schremser | last post: by
2 posts views Thread by Kyle Kaitan | last post: by
1 post views Thread by richlm | last post: by
4 posts views Thread by Jason Pettys | last post: by
3 posts views Thread by Patrick | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.