private void btnSearch_Click(object sender, EventArgs e) { string keyname = txtImageName.Text.Trim(); ImageList imagelist = MIS.GetImageList(40, keyname); add_image(imagelist); }
protected override void OnLoad(EventArgs e) { //base.OnLoad(e); //ImageList imagelist =MIS.GetImageList(32); //this.listView1.LargeImageList = imagelist; //foreach (string key in imagelist.Images.Keys) //{ // ListViewItem item = new ListViewItem(key); // item.ImageKey = key; // listView1.Items.Add(item); //} base.OnLoad(e); ImageList imagelist = MIS.GetImageList(40, ""); add_image(imagelist); }