D Dragan Ristic Jan 1, 2007 #1 How to select all ListView items and then copy that to clipboard (VB 7)? Please help.
H Herfried K. Wagner [MVP] Jan 3, 2007 #2 Dragan, Dragan Ristic said: How to select all ListView items and then copy that to clipboard (VB 7)? Click to expand... \\\ Imports System.Text .... Dim sb As New StringBuilder() For Each Item As ListViewItem In Me.ListView1.Items Item.Selected = True sb.AppendLine(Item.Text) Next Item Clipboard.SetText(sb.ToString().TrimStart(ControlChars.Cr, ControlChars.Lf)) ///
Dragan, Dragan Ristic said: How to select all ListView items and then copy that to clipboard (VB 7)? Click to expand... \\\ Imports System.Text .... Dim sb As New StringBuilder() For Each Item As ListViewItem In Me.ListView1.Items Item.Selected = True sb.AppendLine(Item.Text) Next Item Clipboard.SetText(sb.ToString().TrimStart(ControlChars.Cr, ControlChars.Lf)) ///