THIS IS NOT WORKING

  • Thread starter Thread starter Enhance Technology
  • Start date Start date
E

Enhance Technology

Guest
private void BtnSwitch_Click(object sender, EventArgs e)
{
string message = "Do you want to switch this user ?";
string title = "Switch User";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result = MessageBox.Show(message, title, buttons);
if (result == DialogResult.No)
{
//this.Close();
}
else
{
string path = (@"C:\Windows\System32\tsdiscon.exe");
Process.Start(path);
this.Close();
}
}

Continue reading...
 
Back
Top