Professional Documents
Culture Documents
if (!File.Exists(filePathPta))
{
File.CreateText(filePathPta);
}
if (!File.Exists(filePathDb))
{
File.CreateText(filePathDb);
}
MessageBox.Show("The .txt files have been created.");
//clicking the create file button more than once will overwrite the old files
}
if (ckBxPret.Checked)
{
if (!ckBxCapeT.Checked)
{
rTxtBxCT.Clear();
}
if (!ckBxJohann.Checked)
{
rTxtBxJoBurg.Clear();
}
if (!ckBxDurb.Checked)
{
rTxtBxDb.Clear();
}
rTxtBxPta.Text = File.ReadAllText(@"Pretoria.txt");
}
https://social.msdn.microsoft.com/Forums/en-US/0902ba30-479e-4c2e-bd06-4a03f52e1cdd/quick-way-of-getting-day-and-
month-and-year-from-datetimepicker-component?forum=clr