title: VB.NET Remove Item in ComboBox after placing in ListBox
body: <p>How can I remove item in comboBox after
  I choose it and put into listBox.</p>
  
  <p>Here's my code. Please help me.</p>
  
  <pre><code>Imports System
  Imports System.Data
  Imports System.Data.SqlClient
  Public Class frmAdvancePayment
  
  
      Private Sub frmAdvancePayment_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          lstBillNum.Items.Clear()
          Dim connection_string As String = "Data Source=.\sqlexpress;Initial Catalog=CreditAndCollection;Integrated Security=True"
          Dim connection As New SqlConnection(connection_string)
          connection.Open()
          Dim sql As String = "select BillNum from tblBillingSched where Status ='Unpaid'"
          Dim da As New SqlDataAdapter(sql, connection_string)
          Dim dt As New DataTable
          da.Fill(dt)
          cmbBillNum.DataSource = dt
          cmbBillNum.DisplayMember = "BillNum"
          cmbBillNum.ValueMember = "BillNum"
          connection.Close()
      End Sub
  
  
  
      Private Sub btnGet_Click(sender As Object, e As EventArgs) Handles btnGet.Click
          lstBillNum.Items.Add(cmbBillNum.SelectedValue)
      End Sub
  
      Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click
          lstBillNum.Items.Clear()
      End Sub
  
  End Class
  </code></pre>