Basic textbox textbox
Example
Basic 2720 2193(i want arrive this(2193) amount when i type 2720)
in the first textbox i type the amount 2720
in the second textbox i want (2720/31)25 = 2193
Basic textbox textbox
Example
Basic 2720 2266(i want to arrive this(2266) amount when i type 2720)
in the first textbox i type the amount 2720
in the second textbox i want (2720/30)25 = 2266
that divide may 31 or 30 days
for the above how to do in else statement
Loading
Posted Jul 9, 2012, 7:51 AM
How you're going to determine that you need to divide by 30 /31. From your prev question, i'm assuming that the following statement will help you.
int noofdays = DateTime.DaysInMonth(year, month);
Please pass the month and year you will get the number of days automcatically.
textbox2.text = (textbox1.text/nodays)*25