- Joined
- May 18, 2007
- Messages
- 1,787
- Reaction score
- 291
I'm making a basic Tcp/Udp Server, Which I hope to turn into Tales Runner server emulator. I just started on it today, and I want to get the server re starter working, before I move on.
This is what I have so far.
As you can see, it looks as if it should work. But it doesn't. doesn't even output an error.
This is what I have so far.
As you can see, it looks as if it should work. But it doesn't. doesn't even output an error.
PHP:
private void button2_Click(object sender, EventArgs e)
{
foreach (Process pi in Process.GetProcesses())
switch (pi.ProcessName.ToLower())
{
case "TcpUdp Server": { }
{
pi.Kill();
}