Embedded resources

N

Nak

Hi there,

I'm having a little confusion with embedding resources into my VB.NET
app. In VB6 I could make a resource file that could hold icons, these icons
could then be used for file association, how the hell do you do that with
VB.NET? It seems to me that I need to have a copy of the ICO file in the
applications install folder, which seems like a bit of a bodge to me, surely
I must be able to embed lots of icons into my application that could then be
used in the setup program when adding file types. I have tried adding icons
and setting them to "embedded resource" but upon trying to change the icon
in the file types it only shows the main program icon. Surely I must be
doing this all wrong, also, what is the deal with an assembley resource
file? I don't seem to be able to add icons to these, only text. Thanks in
advance, any enlightenment into this would be great, and if anyone knows how
I could also have nice Windows XP colour depth icons in my app I would be
very greatful also.

Nick.
 
N

Nak

Herfried,

Thanks for the information, I'm slightly suprised that this isn't
supported, but then again maybe I'm not. Maybe I should just refer to icons
in the application directory instead just for convenience, less chance of me
messing something up then. I've downloaded your example, thanks loads for
your help.

Nick.
 
T

Tom Spink

The resources you are referring to are 'Win32 Resources' i.e. unmanaged.
Managed resources are easier to use in some cases, but of course, Windows
wasn't written in managed C++, so they aren't really supported as standard
icons :)

--
Happy to help,
-- Tom Spink
([email protected])

" There's no place like 127.0.0.1 "

Please respond to the newsgroup,
so all can benefit.


One Day,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top