Some code example is here?
pleas take a look
private void btnSave_Click(object sender, EventArgs e)
{
DialogResult dr = MessageBox.Show("Are you sure! you want to save changes of prayer timings", "Prayer Timings", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dr == DialogResult.Yes)
{
btnModify.Visible = true;
btnSave.Visible = false;
if(!Directory.Exists(Application.StartupPath + "\\PrayerTimings"))
Directory.CreateDirectory(Application.StartupPath + "\\PrayerTimings");
StreamWriter writer = new StreamWriter(Application.StartupPath + "PrayerTimings");
string strFajar = dtPickerFajar.value?????
string strZohar = dtPickerZohar.value?????
}
}