I have developed a programe named as exeproject.vbp , After Installation through package and devlopement wizard, i want my program icon to be placed in task bar icon. How can i do this.
Printable View
I have developed a programe named as exeproject.vbp , After Installation through package and devlopement wizard, i want my program icon to be placed in task bar icon. How can i do this.
do you mean add you program down in the tray by the clock?
Do u mean Startup or taskbar? If startup then u can do it by copying the file by filecopy in the startup folder.
Hi Static,
Thanks for the reply.Yes I want to add in the tray by the clock?
try this stuff...works great for me! :)
If you have any problems with it...just ask! ;)
Please rate if it works! ;):D
//Alex
Hi cyber alex,
Thanks for the Post.I need the my form has to be placed automatically whenever windows starts
put a shortcut to your app in the startup folder
or
add you app to the registry in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
okey...then you'll just have to use the Task Icon.zip code and install your exe program into the Startup folder.
Please Explain
and as a tip... Cyber_alex's code will work to add the icon.. but I would recommend putting a lot of the code into a module.. to keep it cleaner
TrayIcon:
Shell_NotifyIcon API.
How To Manipulate Icons in the System Tray with Visual Basic
@Vivek:
Copying the whole exe is not a good idea. That exe may need many other files in App.Path. :)
Adding just a shortcut in startup folder or, Add/Remove your program to computer startup (through the registry) will do the trick.
Edit: I'm very slow today. :(
mm, If you add your app into the registry in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and put your program in the startup folder the program will automaticly startup when Windows starts.
And with the Task Icon code that I posted it will be added as a Task Icon.
Hope it works! :D