I'm using the following to add a list from a txt into a listbox, which works perfectly.
The similar thing below does not work to load sites from the clipboard. What else could I use.
ListBox1.Items.AddRange(IO.File.ReadAllLines(Clipboard.GetText))
VB.NET:
Dim OFD As New OpenFileDialog
OFD.Filter = "Text Documents (*.txt)|*.txt"
OFD.Title = "Open List"
OFD.ShowDialog()
ListBox1.Items.AddRange(IO.File.ReadAllLines(OFD.FileName))
The similar thing below does not work to load sites from the clipboard. What else could I use.
ListBox1.Items.AddRange(IO.File.ReadAllLines(Clipboard.GetText))