0

那是我的代码:

Dim mimage = Image.FromStream(stream)
Me.TabControl2.ImageList.Images.AddRange(mimage) -> Here
Me.TabControl2.SelectedTab.ImageIndex = 0
Me.TabControl2.ImageList.Images.RemoveAt(0)

它给了我那个错误(标题)。怎么了?

4

1 回答 1

0

AddRange 需要一个数组

Me.TabControl2.ImageList.Images.Add(mimage)
Me.TabControl2.ImageList.Images.AddRange({mimage})
于 2013-04-23T11:29:24.233 回答