private void KRAList() { DataTable dt = extensions.SQLiteDatabaseCommand.dataList("tblKRA"); int x = 0; foreach (DataRow row in dt.Rows) { LinkLabel lnklbl = new LinkLabel(); lnklbl.SuspendLayout(); lnklbl.AutoSize = true; lnklbl.Font = new System.Drawing.Font("Century Gothic", 11.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); lnklbl.Location = new System.Drawing.Point(30, 20); lnklbl.Margin = new System.Windows.Forms.Padding(30, 20, 30, 0); lnklbl.Name = "linkLabel" + x; lnklbl.Padding = new System.Windows.Forms.Padding(3); lnklbl.Size = new System.Drawing.Size(200, 48); lnklbl.TabIndex = 0; lnklbl.TabStop = true; lnklbl.Text = dt.Rows[x][1].ToString(); lnklbl.AccessibleDescription = dt.Rows[x][0].ToString(); lnklbl.Click += new EventHandler(KRA_Click); x++; lnklbl.ResumeLayout(false); flowLayoutPanelKRA.Controls.Add(lnklbl); } }