Hey, I have the code as follows:
public Form1()
{
InitializeComponent();
string[] _args = Environment.GetCommandLineArgs();
if (_args.Contains("options"))
{
this.Show();
}
}
This will be a tray app (and close quickly after the work is done), so if I add a notifyicon above the InitializeComponent(), could I move that just above the this.Show()?
As it will not be needed most of the time, it seems a waste to load the items.
The form does not show when the program runs- I stopped this happening in the program.cs.