Re: System tray icon Error
Which version are you using?
Re: System tray icon Error
Ok, I am assuming you are using 2002 or 2003, so below is an example that should load the icon file as long as it is an item in your project, and you changed the icon file to be an embedded resource in the build action.
VB Code:
Me.NotifyIcon1.Icon = New Icon( _
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream( _
"MyApp.myicon.ico"))
Replace the ""MyApp" string with your project name, and the "myicon.ico" with the name of your icon file, and it is case sensitive.
In 2005, you can just access the My.Resources object...
Re: System tray icon Error
Sorry i should have stated im using 2005. Perhaps its the fact that im using a 2003 book as refrence.. It works now... thank you.
Re: System tray icon Error
WEll it should be easier in 2005. Just check out the project properties (right click project, go to properties), and theres a Resources section. You just add your icon to that, and then refer to it using My.Resources...