我想知道如何设置一个没有图像的图片框,似乎无法在任何地方找到它。
If GPU.SelectedItem = "None" Then
GPUCost.Text = "$0"
GCost = 0
'Set this to No Image
GPUImage.Image =
'
FullCost.Text = "Total Cost: $" & DCost + GCost + CCost + PCost
End If
If GPU.SelectedItem = "{GPU}" Then
GPUCost.Text = "$45"
GCost = 45
GPUImage.Image = My.Resources.GPU_1
FullCost.Text = "Total Cost: $" & DCost + GCost + CCost + PCost
End If
答案 0 :(得分:1)
GPUImage.Image = Nothing
这基本上是VB.NET中的空值。