Remove created ComboBox etc.

Hey, is it possible to delete or hide a ComboBox later in the code?



plyBox = vgui.Create( "DComboBox", Menu)  -- Menu is just a littleDFrame i created
   plyBox:SetPos( 25, 25 )
   plyBox:SetSize( 100, 20 )
   plyBox:SetValue( "Player" )

   for _,ply in pairs(player.GetAll()) do
      plyBox:AddChoice(ply:GetName())
   end


e.g. something like plyBox:Hide() or plyBox:Remove()

I hope you can help me :slight_smile:

there is Panel:Remove(), but if you want to just set it invisible use Panel:SetVisible(false)

Thanks, it works perfectly fine :slight_smile: