这是我的代码:
Dim mimage = Image.FromStream(stream)
Me.TabControl2.ImageList.Images.AddRange(mimage) -> Here
Me.TabControl2.SelectedTab.ImageIndex = 0
Me.TabControl2.ImageList.Images.RemoveAt(0)
它给了我那个错误(标题)。怎么了?
答案 0 :(得分:0)
AddRange需要数组
Me.TabControl2.ImageList.Images.Add(mimage)
Me.TabControl2.ImageList.Images.AddRange({mimage})