MessageBox.Show(DateTime.Now.Hour.ToString()); MessageBox.Show(DateTime.Now.Minute.ToString());
_____________________________________________________
it didnt work if i write it with these:
if ((Convert.ToString(DateTime.Now.Minute.ToString("mm")) == Convert.ToString(dak_textBox.Text).ToString())
{
if ((Convert.ToString(DateTime.Now.Hour.ToString("hh") == Convert.ToString(saat_textBox.Text)))
{
System.Diagnostics. Process.Start("shutdown", "-f -s");
}
}
i have to write a program which is switched off by the time the user want...
|