private void button1_Click(object sender, EventArgs e)
{
string eingabe = textBox1.Text;
int basis = Int32.Parse(eingabe);
System.Diagnostics.Process.Start(System.Environment.SystemDirectory + "\\shutdown.exe", "-s -t {0}" + basis);
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
} |