Skip to content

Instantly share code, notes, and snippets.

@dtrizna
Last active January 22, 2021 13:52
Show Gist options
  • Save dtrizna/a33258bc3c6dd5fbca891fd9d3028de2 to your computer and use it in GitHub Desktop.
Save dtrizna/a33258bc3c6dd5fbca891fd9d3028de2 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
namespace donutTestSimpleDotNetApp
{
class Program
{
static void Main(string[] args)
{
int nProcessID = Process.GetCurrentProcess().Id;
string message = nProcessID.ToString();
MessageBox.Show(message,"Box from PID:");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment