private void LoadTemplate() { //Guna.UI2.WinForms.Guna2Button button = new Guna.UI2.WinForms.Guna2Button(); var dh = new dataset.yakkumdbTableAdapters.fa_rx_templateTableAdapter(); dh.FillByDistinct(yakkumdb.fa_rx_template); DataTable dt = dh.GetDataByDistinct(); foreach (DataRow r in dt.Rows) { //MessageBox.Show(r["nama_template"].ToString()); Guna.UI2.WinForms.Guna2Button button = new Guna.UI2.WinForms.Guna2Button(); button.Tag = r["nama_template"].ToString(); button.Text = r["nama_template"].ToString(); button.AutoRoundedCorners = true; button.AutoSize = true; flowLayoutPanel1.Controls.Add(button); button.Click += button_MouseCliked; } }