i've got an index out of range exeption on this one
If My.Settings.SavedLinks IsNot Nothing Then
For Each Sl As String In My.Settings.SavedLinks
Dim LinkInfo As String = Sl.Split(",").ToString
Dim NewLink As New ToolStripButton(LinkInfo(0))
NewLink.Tag = LinkInfo(1) AddHandler NewLink.Click, AddressOf GoToLink
Dim sep As New ToolStripSeparator
i dont know what im doing wrong but when it loads it give the error
its for a favorite bar in my webbrowser
One of your strings does not contain a ',' character. As a result, there is only one entry in the LinkInfo array, and when you try to access the second one it throws an exception.
Put a breakpoint on the line that throws the error, and look at the value in S1.
Use the debugger:
1) set to stop on throwing exception (Debug --> Exceptions --> .Net Exceptions --> throwing [x])
2) run the program in debug mode
3) when the debugger stops where the execption is thrown, check the message and inspect the individual variables
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)