Пређи на главни садржај

Постови

Charts with more than one source c# 2

 private void textBox1_TextChanged(object sender, EventArgs e)         {             try             {                 if (textBox1.Text != "")                 {                     OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=B13B14.accdb");                     int br = 0;                     string uzmi = "Select Max(AutorID) From Autor";                     OleDbCommand cmd1 = new OleDbCommand(uzmi, con);                     con.Open();                     OleDbDataR...
Недавни постови

Charts with more than one source c# pt1

 private void radioButton1_CheckedChanged(object sender, EventArgs e)         {             button1.Enabled = true;             button2.Enabled=false;             textBox1.Enabled=true;             textBox2.Enabled = true;             textBox3.Enabled = true;             textBox5.Enabled = true;             comboBox1.Enabled = true;             List<string> kategorije = new List<string>();             string drl = "Select Naziv From Kategorija ORDER BY Naziv";             OleDbCommand komanda = new OleDbCommand(drl, con);             con.Open();             OleDbDataReader read...

Antiques in c# 2

  OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=B9B10.accdb");         private void textBox1_TextChanged(object sender, EventArgs e)         {             try             {                 if (textBox1.Text != "")                 {                     int br = 0;                     string izbroj = "Select Max(PeriodID) From Period";                     OleDbCommand prebroj = new OleDbCommand(izbroj, con);                     con.Open();                     OleDbDataReader dr = prebroj.ExecuteReader(...

Antiques in c# 1

OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=B9B10.accdb");         private void textBox1_TextChanged(object sender, EventArgs e)         {                       try             {                 if (textBox1.Text != "")                 {                     int br = 0;                     string izbroj = "Select Max(TipAntikvitetaID) From Tip_Antikviteta";                     OleDbCommand prebroj = new OleDbCommand(izbroj, con);                     con.Open();                   ...

Insert stadions in database c#

 private void Form4_Load(object sender, EventArgs e)         {             OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=B5B6.accdb");             List<string> gradovi = new List<string>();             string select = "Select Grad From Grad Order By Grad";             OleDbCommand cmd = new OleDbCommand(select, con);             con.Open();             OleDbDataReader reader = cmd.ExecuteReader();             while (reader.Read())                 gradovi.Add(reader.GetString(0));             comboBox1.DataSource = gradovi;             con.Close();         }   ...

Insert cities in database c#

 private void button1_Click(object sender, EventArgs e)         {             OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=B5B6.accdb");             int id =0;             string upit = "Select MIN(GradID) From Grad";             OleDbCommand c = new OleDbCommand(upit, con);             con.Open();             OleDbDataReader reader1 = c.ExecuteReader();             while (reader1.Read()) id = Convert.ToInt32(reader1.GetValue(0));             string select = "Select Grad, PozivniBroj, PostanskiBroj, BrojStanovnika From Grad Where GradID=@GradID";             OleDbCommand cmd = new OleDbCommand(select, con);         ...