When the error shows up, make note of the line it's on. That information is usually pretty important. Off the top of my head, I'd say try SelectedItem.Text instead of SelectedItems.
tinstaafl
Nearly a Posting Virtuoso
1,481 posts since Jun 2010
Reputation Points: 429
Solved Threads: 261
Skill Endorsements: 14
Hi,
WebBrowser.WebBrowser1.Navigate(BookmarksList.SelectedItems)
SelectedItems implies a collection to me - did intellisense highlight it?
I'd say your looking for either
WebBrowser.WebBrowser1.Navigate(BookmarksList.SelectedItem)
Or
WebBrowser.WebBrowser1.Navigate(BookmarksList.SelectedItems(0))
However, given the error message when you tried SelectedItem.Text is telling you text is not a valid member on type string I'd say the first option is the one you want i.e. SelectedItem
G_Waddell
Practically a Master Poster
623 posts since Nov 2009
Reputation Points: 107
Solved Threads: 95
Skill Endorsements: 6
Question Answered as of 1 Month Ago by
G_Waddell
and
tinstaafl