المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : all form problem?



C# Programming
01-09-2010, 04:53 AM
Now i have form1 and form2
datetimepicker1 and datetimepicker2 is in form1
i want to use datetimepicker1 and datetimepicker2 on form2 from form1,how could i do ?
i wrote my code on form1 like this string from, to;

from = this.dateTimePicker1.Value.ToString("yyyy-MM-dd");
to = this.dateTimePicker2.Value.ToString("yyyy-MM-dd");
it can work very well

but when i want to get the same results on form2,How could i change my code?

thanks everyone?