Results 1 to 7 of 7

Thread: Link program to an icon

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    53

    Link program to an icon

    How do I link a vb.NET program to an icon? (not the shortcut)

  2. #2

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    53

    Re: Link program to an icon

    I have a program I have written in vb.NET and I have an icon in the form XXX.ico I want the icon to appear on the desktop so that when you click it it will open the program.exe
    I know how to use the "change icon" function to give a shortcut icon, but I don't know how to link a standard icon directly to my program without it being labelled "Shortcut to program.exe".

  3. #3
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Link program to an icon

    If you set the Application Icon, the xxx.ico is used even if you right click on the app and create desktop icon. Right click on the Project->Properties->Build (tree node), browse for your xxx.ico

    or compile it with /win32icon:path/icon.ico switch

    Or am I missing something here?

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    53

    Re: Link program to an icon

    Thanks for the replies Kulrom and Nebulom. I have an exe program I have put on a cd and wish to give it to someone. When I put the program on the disk I didn't know how to link my icon to it so I ended up with the standard windows icon - a white rectangle with a blue top.
    So when the person I give this program to transfers it from the cd onto his computer, the icon that transfers is just the standard windows icon with a white rectangle with a blue top. Yet I have this other icon which I would like the program to have, but I don't know how to do it.

    Thanks for the suggestion Nebulom.... I will try that now.

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Link program to an icon

    you know when it says "shortcut to myprogram.exe" you can simply edit that text to say whatever you want

    also if you are giving this program to someone else, you may want to create an installer package for it, unless you are certain you included everything you need on the CD and they already have the .net framework

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    53

    Re: Link program to an icon

    Many thanks Nebulom - that was it! Great. Thanks also Kulrom.


  7. #7

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    53

    Re: Link program to an icon

    Thanks Kleinma. I will follow up your suggestion of an installer package.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width