for (int i = 0; i = count.ToString(); i++)
SqlCommand cmd = new SqlCommand(); cmd.CommandText = "SELECT COUNT(*) FROM roba_usluge"; Int32 count = (Int32)cmd.ExecuteScalar(); int top = 50; int left = 50; for (int i = 0; i = count.ToString(); i++) { Button button = new Button(); button.Left = left; button.Top = top; button.Text = (i + 1).ToString(); this.Controls.Add(button); top += button.Height + 2; }
for (int i = 0; i < count; i++)
using (SqlConnection conn = new SqlConnection(connString)) { SqlCommand cmd = new SqlCommand(sql, conn); ... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)