回覆列表
  • 1 # 使用者5933125843701

    VB有兩個列表框,假設VB列表框的左列表為List1,右列表為List2,程式碼如下:

    Private Sub Command1_Click()

    List2.AddItem List1.Text

    List1.RemoveItem (Selected)

    End Sub

    Private Sub Command2_Click()

    List1.AddItem List2.Text

    List2.RemoveItem (Selected)

    End Sub

    Private Sub Form_Load()

    Command1.Caption = ">>>>"

    Command1.Enabled = False

    Command2.Caption = "

    Command2.Enabled = False

    End Sub

    Private Sub List1_Click()

    Command1.Enabled = True

    Command2.Enabled = False

    End Sub

    Private Sub List2_Click()

    Command2.Enabled = True

    Command1.Enabled = False

    End Sub

  • 中秋節和大豐收的關聯?
  • 我真的好難過因為你離開我是什麼歌?