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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hawi AdenPosted Nov 7, 2015, 8:23 PM
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));
}
}
Nishant MittalPosted Nov 5, 2015, 11:32 PM
Jignesh TrivediPosted Nov 5, 2015, 11:07 PM