Hi guys.
How to get data from a ListView?
I make a few apps using a ListView which has 1,000 of data which there is no point is printing them all out.
If I right click on an item how can I I get the data to the clipboard?
This doesn't appear to get anything.Code:Private Sub lvwEngine_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) Set lvwEngine.SelectedItem = lvwEngine.ListItems(1) 'vbRightButton 1 Left button is pressed 'vbLeftButton 2 Right button is pressed If vbLeftButton Then Clipboard.Clear lvwEngine.SelectedItem Clipboard.GetText End If End Sub




Reply With Quote