• www.88828.com|www.88828.com【3D老虎机让你身临其境】

  • 发布时间:2016-01-21 22:58 | 作者:yc | 来源:互联网 | 浏览:1200 次
  • www.88828.com|www.88828.com【3D老虎机让你身临其境】

    public partial class Form5 : Form

    {

    public Form5()

    {

    InitializeComponent();

    }

    www.88828.com|www.88828.com【3D老虎机让你身临其境】private void Form5_Load(object sender, EventArgs e)

    {

    www.88828.com|www.88828.com【3D老虎机让你身临其境】DataTable dt = new DataTable();

    dt.Columns.Add("aa");

    dt.Columns.Add("bb");

    for (int i = 0; i

    {

    dt.Rows.Add("aa" + i, "bb" + i);

    }

    dt.Acyoujizz。comceptChanges();

    this.listBox1.DisplayMember = "bb";

    this.listBox1.DataSource = dt;

    this.listBox1.Height = 200;

    this.listBox1.MouseDoubleClick += new MouseEventHandler(listBox1_MouseDoubleClick);

    }

    void listBox1_MouseDoubleClick(object sender, MouseEventAr注册首存10元送38gs e)

    {

    int index = this.listBox1.IndexFromPoint(e.Location);

    if (index != System.Windows.Forms.ListBox.NoMatches)

    {

    MessageBox.Show(index.ToString());

    //do your stuff here

    }

    }

    }

    参阅链接:

    http://bbs.csdn.net/topics/

  • 相关内容

友情链接: