Hi,

am trying to resume previous index during a search for matches from a file from the code below, incase an application loses Internet Connection. How do you achieve this in .NET?

Code:
Wordintext = Wordrepcemnts.Keys.ElementAt(WordintextIndex)

 foundWordintextIndex = RichTextBox1.Find(Wordintext, 0, RichTextBox1.Text.Length, RichTextBoxFinds.WholeWord)
    If foundWordintextIndex > -1 Then

For Each Wordforrep In Wordrepcemnts(Wordintext)
                 
'do something here


                Next