将picturebox图像设置为无vb

时间:2015-04-26 20:20:34

标签: vb.net image

我想知道如何设置一个没有图像的图片框,似乎无法在任何地方找到它。

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

1 个答案:

答案 0 :(得分:1)

GPUImage.Image = Nothing

这基本上是VB.NET中的空值。