Reputation: 189
I want to enable Ctrl+F or find or search functionality inside my windows form application.
My application comprises of a main presenter & sub-presenters.
My search is simple text search but inside different sub-presenters consisting of editable controls.
Whenever a search is found, focus is set to that sub-presenter's particular control.
But when Find button is clicked again, I want to start searching from last search result and not from beginning.
Is that possible to store presenter state? so that i can start from last search state.
Upvotes: 0
Views: 203
Reputation: 2196
store the previous line no in some global variable when u clik on find next start it form line no
static public bool FindNext(string searchString, bool caseSensitive,int line no)
{ //Your code }
Upvotes: 1