SqlCommand dc = new SqlCommand("select bdate from Hbillprint", con); DateTimePicker dt = Convert.ToDateTime(dc.ExecuteScalar()); MessageBox.Show(dt.ToString()); dateTimePicker1.Value = dt;
Cannot implicitly convert type 'System.DateTime' to 'System.Windows.Forms.DateTimePicker' WindowsFormsApplication1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)