Hi All,
How to insert into Database table Automaticlly when months changed by use Datetimepicker
thanx
Hi All,
How to insert into Database table Automaticlly when months changed by use Datetimepicker
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 5, 2015, 6:07 PM EST
Nishant MittalRank #692 · 3.5K reputationPosted Nov 5, 2015, 6:32 PM EST
Hawi Aden19 reputationPosted Nov 7, 2015, 3:23 PM EST
float PayMomth,PayTotal;
DateTime PayDate;
private void button4_Click(object sender, EventArgs e)
{
PayDate = dateTimePicker1.Value;
PayTotal = float.Parse(textBox2.Text);
while(PayTotal>0)
{
if(PayTotal>=100)
{ PayTotal-=100;
PayMomth = 100;
}
else
{ PayMomth=PayTotal;
PayTotal=0;}
wor.addbill(PayDate, Convert.ToInt32(comboBox1.SelectedValue),PayTotal, Convert.ToDateTime(dateTimePicker2.Text));
}
}