'Flash.ocx' should be excluded because its source file 'C:\Windows\System32\Macromed\Flash\Flash.ocx' is under Windows System File Protection.
File 'log4net.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
public void fromTOdate() { if (con.State == ConnectionState.Closed) { con.Open(); } cmd = new SqlCommand("rptSaleSearch", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@frmdt", frmdtDateTime.Text); cmd.Parameters.AddWithValue("@todt", todtDateTime.Text); cmd.ExecuteNonQuery(); adp = new SqlDataAdapter(cmd); dt = new DataTable(); adp.Fill(dt); grdSpanSale.DataSource = dt; grdSpanSale.Columns[2].Width = 50; grdSpanSale.Columns[2].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; grdSpanSale.Columns[4].Visible = true; }
'Object reference not set to an instance of an object.' (... as System.Data.DataTable) returned null.
private void btnAddState_Click(object sender, EventArgs e) { BtnID = "btnAddState"; using (Add add = new Add()) { add.buttonID = BtnID; add.ShowDialog(); } }