Thanks Pirate! I have one question, I have the need to change the icon based on the status of the app. How do I change the icon progammatically? That property does not have the "FromFile" method like an image property.
Dim ico As New Icon("C:\someicon.ico") '/// path of your icon.
ni.Icon = ico '/// set the icon to your notify icon ( where your notify icon's name would be inplace of ni )
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
Originally posted by jstansell Thanks Pirate! I have one question, I have the need to change the icon based on the status of the app. How do I change the icon progammatically? That property does not have the "FromFile" method like an image property.
Thanks again for the code.
Pirate:
Thanks for the example. Is there a way that you can see that I could do the same thing using the minimize thingie (technical term) two elements to the left of the X box?
Also, is the only way to kill this app from the task list?
Thanks,
Eric
Thanks,
Eric
--------------------------------------------------------------------------------------------------------------------
VB.net/C# ... Visual Studio 2019
"None of us are as smart as all of us."
Note, Editing the Forms Closing Event Will to Minimize will cause this to Fire when a Shutdown or Forceshutdown is executed, meaning your computer wont Shutdown until the App is Closed by a Application.exit somewhere else.