I'm using VB.Net standard eddition. I tried your code example but where I'm declaring the following
Dim current As Process=Process.GetCurrentProcess()
Process gets underlined, like it's not accepting this setting.I also tried:
Dim current as Process
Still Process where I'm setting current=... is getting underlined. What is wrong?
Make sure that you have the System.Diagnostics namespace referenced in your file. Other than that, not sure why you are having trouble with either syntax. Both seem to work fine on my machine.