public void ShowAlert() { try { DataTable dtTB=GetThongBao(); foreach (DataRow rowtb in dtTB.Rows) { AlertForm alert = new AlertForm(controlBroadCast); alert.Name = "lert " + rowtb["ID"].ToString(); alert.Text = rowtb["CHU_DE"].ToString(); alert.MouseDown += new MouseEventHandler(control_MouseDown); lblthongbao = new LabelControl(); lblthongbao.Location = new System.Drawing.Point(10, 23); lblthongbao.AutoSizeMode = LabelAutoSizeMode.None; lblthongbao.Size = new System.Drawing.Size(230, 52); lblthongbao.ImageAlignToText = ImageAlignToText.LeftCenter; lblthongbao.AllowHtmlString = true; lblthongbao.Appearance.TextOptions.WordWrap = WordWrap.Wrap; lblthongbao.Appearance.Image = HelpImage.getImage4848("broadcast.png"); lblthongbao.ForeColor = Color.Blue; lblthongbao.Cursor = Cursors.Hand; lblthongbao.Text = rowtb["CHU_DE"].ToString(); lblthongbao.MouseDown += new MouseEventHandler(control_MouseDown); lblthongbao.Tag = rowtb; alert.Controls.Add(lblthongbao); alert.Tag = rowtb; alert.ShowForm(formMain); } } catch { } }