Click here to Skip to main content
15,888,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This may seem like a silly question, but how do I embed an icon in a VB.Net project to make it usable by Windows file associations? Even when I select "Embedded Resource" for it, I can't find it in any resource viewing programs. How do I make it available for those programs and for file associations?
Posted

1 solution

Do you think it works through icon or looking at the executable's resources? Strange idea.

As your tag is VB.NET you might want to see this:
File Association in VB.NET[^];
File Type Creator[^].

Form more information, Google:
http://en.lmgtfy.com/?q=file+accociation+%22VB.NET%22[^]
or, better:
http://en.lmgtfy.com/?q=file+accociation+(%22VB.NET%22+OR+%22C%23%22)[^]

—SA
 
Share this answer
 
v4
Comments
Matchlighter 5-Mar-11 15:41pm    
I am not trying to make a file association. I am trying to make an embedded icon available to be set for a file association. When I set an icon file to 'Embedded Resource' and then open up Resource Hacker (or any similar program), that icon the I set to 'Embedded Resource' is not displayed, so how do I get it's ID to set for file associations?
Sergey Alexandrovich Kryukov 6-Mar-11 1:26am    
Well, you mentioned "to make it usable by Windows file associations". I did not suggest you make them. The articles would show you how to follow the structure of association to solve your problem.
What you do is modification of existing association. I don't think I can afford to do this work for you (and hardly anyone will), so I can only point out where to look at. Last time I did something similar, I simply explores the Registry and only later found confirmations of my finding in publication.

Now, what do you want to do with that? It looks strange to me...

Also, is your only problem is exposing the icon as the standard windows resource (with is different then .NET)? Probably only application icon is exposed like that.

--SA
Matchlighter 7-Mar-11 1:13am    
Yes, that is what I am trying to do, expose another icon besides the default application one. So, there is no way to do that? Sorry if I was a little unclear about my intentions.
Sergey Alexandrovich Kryukov 7-Mar-11 3:14am    
I would say, it need some research. You can use Microsoft resource viewer as a research tool. (Open executable as resource; you can use VS.)
You know what else? Clarify your question very well, based on our discussion. It will bring your Question on top of stack (after you commit "Improve question") -- maybe somebody already did that.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900