yeubongdo01 > 05-10-12, 10:57 AM
", qua trái : "<"). Các bạn giúp mình nhe, hoặc cho mình đường link đến cách làm. Mình tìm hoài không thấy. Chân thành cám ơn các bạn!
tanthuc > 05-10-12, 02:02 PM
yeubongdo01 > 05-10-12, 02:33 PM
DoquangLam > 06-10-12, 09:54 AM
domfootwear > 06-10-12, 10:26 AM
yeubongdo01 > 08-10-12, 12:02 PM
domfootwear > 08-10-12, 03:57 PM
Sub MoveSingleItem(strSourceControl As String, strTargetControl As String)
    On Error Resume Next
    Dim strItem As String
    Dim intColumnCount As Integer
    For intColumnCount = 0 To Me.Controls(strSourceControl).ColumnCount - 1
        strItem = strItem & Me.Controls(strSourceControl).Column(intColumnCount) & ";"
    Next
    strItem = Left(strItem, Len(strItem) - 1)
    'Check the length to make sure something is selected
    If Left(strItem, 1) <> ";" Then
        Me.Controls(strTargetControl).AddItem strItem
        Me.Controls(strSourceControl).RemoveItem Me.Controls(strSourceControl).ListIndex
    Else
        MsgBox "Please select an item to move."
    End If
End Sub