本文介绍了C#如何在FLP中删除数据两次点击(双击winform)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要双击在FLP中删除我的数据。怎么做?
我尝试过:
i need delete my datas in FLP with double click. How to do it?
What I have tried:
public void Show()
{
flowLayoutPanel1.Controls.Clear();
if (comboBox1.SelectedItem != null)
{
foreach (Group item in Controller.groups)
{
GroupBox elm = new GroupBox();
elm.BackColor = Color.YellowGreen;
elm.Text = item.teacher;
elm.AutoSize = true;
elm.MinimumSize = new Size(150, 150);
Label lb = new Label();
lb.Location = new Point(0, 15);
lb.Text = "Group Name: " + item.group_name + "\n" + "Hours: " + item.hours;
elm.Controls.Add(lb);
lb.AutoSize = true;
flowLayoutPanel1.Controls.Add(elm);
}
}
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
this.Show();
}
推荐答案
这篇关于C#如何在FLP中删除数据两次点击(双击winform)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!