user3267723
user3267723

Reputation: 65

Process.Start not being recognised

Ok, so when I am typing in Process.Start("Chrome.exe") into my code, it doesn't light up, and there are no suggestions for what I might want to do, as it normally does in Visual Studio. I'm not sure why this is, does anyone know?

The error message that I receive under Process is:

The Name "Process" does not exist in the current context

Upvotes: 2

Views: 2131

Answers (1)

Kirill Polishchuk
Kirill Polishchuk

Reputation: 56202

Add System.Diagnostics namespace

using System.Diagnostics;

or use full name:

System.Diagnostics.Process...

Upvotes: 9

Related Questions