static void Main(string[] args) { try { if (args.Length > 0) { if (args[0].ToLower().Trim().Substring(0,2) == "/c") { // Code for settings and such MessageBox.Show("This screen saver has no options that you can set.","MyScreenSaver",MessageBoxButtons.OK,MessageBoxIcon.Exclamation); } else if (args[0].ToLower().Trim().Substring(0,2) == "/s") { Application.Run(new frmMain()); } } else { Application.Run(new frmMain()); } } catch { // nothing to catch } }Hope this helps.