private void ViewGraphBtn_Click(object sender, EventArgs e) { try { Query = "SELECT * FROM Products;"; Reader = conn.ExecuteStatement(Query); while (Reader.Read()) { this.chart1.Series["Series1"] .Points.AddXY(Reader.GetString(1), Reader.GetInt64(4)); } } catch (Exception ex) { MessageBox.Show(ex.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)