Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

Not sure if this post belongs here, but my proxy is acting up and not letting me access some of the forums right now.

 

Anyway, is there a menu in VB.NET that will let you set the compiled exe's properties such as:

 

Company Name

Product Name

etc...

 

 

Right now, I have none of those set when the file compiles, so all I get in the Windows "Open With" menu for my program is an icon with no name when the user right clicks on its associated filetype. Also, if there is a way to add extra icons to the compiled .exe please let me know.

 

Thanks :)

  • *Experts*
Posted

VS.NET generates a file named AssemblyInfo.vb to which you can input that information. If you dont have one then create a new project and just copy the file to your current one and fill in the info. Or add those imports:

Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices

And then you can use this:

<Assemlby: AssemblyTitle("")>

There is more attributes that you can set.

 

You can embed icons in your exe by adding them to the project and then setting their Build Action to Embedded Resource.

Posted

I have a question regarding embedding icons... I need to be able to access the icon using syntax like this in the registry:

 

C:\MyProgram.exe,1

 

 

And embedding the icon like you said is not doing it. After looking some stuff up, it seems that if you use the embedded resource method you can only access the icon in the exe during runtime through code. But I need the icon to be accessible from the registry at any time. (It's an icon for any file type associated with my program :) )

 

If I'm using the wrong line in the registry, please let me know...

 

 

Thanks..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...