I use a component in my C # application it loads the DLL, an icon appeared in the windows tray, is there any way to hide the icon in tray using the command line or any exe with arguments?
Thanks.
I use a component in my C # application it loads the DLL, an icon appeared in the windows tray, is there any way to hide the icon in tray using the command line or any exe with arguments?
Thanks.
From the command line IMHO its not possible unless the exe supports it, eg:
static void Main(string[] args)
{
if (args.Length > 0)
{
if (args[0] == "HideFromWindowsTray")
{
this.ShowInTaskBar = false;
}
}
You could possibly do it using other techniques, eg have a wrapper exe that launches a exe and sets its ShowInTaskBar form property to False. To get inspiration on how you can do this, see HawkEye - The .Net Runtime Object Editor
ps next to each answer is a holo checkbox, tick it to accept answer and you'll get points too.