There isn't, that I know of, but you can easily write what you want. For
example, here's the code to let users paste a comma-delimited set of items
into a ListBox, where the user can then select them individually.
Dim data As IDataObject = Clipboard.GetDataObject()
' Determines whether the data is in a format you can use.
If data.GetDataPresent(DataFormats.Text) Then
' create an arraylist
' split comma-delimited items
Dim s As String = CType(data.GetData(DataFormats.Text), String)
Dim ar() As String = s.Split(","c)
Me.ListBox1.Items.Clear()
Me.ListBox1.Items.AddRange(ar)
Else
' No it is not.
MessageBox.Show("Could not retrieve data off the clipboard.")
End If
Obviously, you'd need to change the code and (sometimes) the target control
to paste other things, such as images, or a set of selected filenames.
"Microsoft" <ma*@mas.com> wrote in message
news:O9**************@TK2MSFTNGP15.phx.gbl...
I'm not sure which control to use for this:
I would like the user to be able to paste a list of items into a box and
then be able to run through them one at a time. Hopefully there is a
control that would place them into an array. I don't want the user to put
them in one at a time..
Thanks..