vb.net
  • image
  • 2015-04-26 44 views 1 likes 
    1

    我想知道如何設置圖片框沒有圖像,似乎無法找到任何地方。設置picturebox圖像爲無vb

    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
    GPUImage.Image = Nothing 
    

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

    相關問題