Okay so im having another issue, that I was going to create another thread but it is basically part of the same issue. Now that I have the code working for it to clear then display the information. I realized that I have another problem that needs to be fixed for it to actually work.
In the beginning of the code on the form I declared the bookmarks as a list along with the bookmarkslineid(below). So that these bookmarks could be added to a list so I could re-use the data. as you seen in the code I posted earlier
vb Code:
Private bookmarksLineId As New Dictionary(Of Integer, Integer)() ' Index - bookmark number, Value - Line.UniqueId Private bookmarks As New List(Of Integer)()
Well I realized that I need to have a new bookmarks list for each new tab(or more specifically each dynamically created textbox), So I can save the bookmarks from that tab into that list and only that list(just like we did for the listview) and be able to to display them from only that list.
So with that being said the problem I am having is that when I add a bookmark to a document in my app on say line three, then I add a new document and add a bookmark on line 3, I cant because it is using the same list(that already has a bookmark on line 3)
So how can I dynamically create the new list for each tab and use them? or even modify it? Im at a complete loss on how to do this.




Reply With Quote