using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ToUpdateGasStationMis.练习
{
public partial class FrmDemo : Form
{
public FrmDemo()
{
InitializeComponent();
}
/// <summary>
/// 显示listBox
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
{
this.listBox1.Items.Clear();
this.listBox1.Items.Add("软件部");
this.listBox1.Items.Add("测试部");
this.listBox1.Items.Add("采购部");
this.listBox1.Items.Add("销售部");
this.listBox1.Items.Add("人事部");
}
/// <su
winfrom ListBox 使用 点击弹窗
最新推荐文章于 2023-03-24 14:12:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)