0
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.SelectedValue IsNot Nothing Then
PictureBox1.Image = Image.FromFile("C:\Users\goodisam000\Desktop\Goodin Coding\Stuff\Pokemon Sprites\X and Y\xyani\" & (ComboBox1.SelectedItem.ToString.ToLower) & ".gif")
End If
End Sub
我想要图片框根据所选组合框选项更改图像。所以说,我选择组合框中的Abra,然后我想要选择Abra时,表单将Abra的图像加载到图片框中。基于组合框调整图片框
正确标记您的问题。这是VB.NET或VBA。你应该知道两者之间的区别。 – 2015-03-13 13:51:01
不是。再猜。 – 2015-03-13 13:52:56
@ Dan-o再次对不起vb.net – 2015-03-13 13:54:27