lee croydon

lee croydon

  • NA
  • 48
  • 11.6k

adding a search facility to NotePad

Jul 21 2014 6:38 AM
Hi i am new to this so please forgive my naivety.
 
i have been given a project to create a notepad using windows form application, which i have so far managed, its got all the basic functionalities like cut,copy,paste, load file, save file etc.  
 
However one of the requirements is for the notepad to have a search facility, so you can find any line of text within the document show that line of text and the line number which it is situated.
 
so my question is, is there a tool in the toolbox that i should be using to be able to do this, or it just a matter of having a search button and writing the code directly to the form, so when the search button is clicked a new form is displayed with a text box search bar, and then test the user input to see if it exists within the text file?
 
any tips or even a point in the right direction would be very much appreciated.
 
Thank you  

Answers (11)