| | |
Find Text String and Output Line Numbers Text Falls on
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jan 2009
Posts: 18
Reputation:
Solved Threads: 0
How do I find a Known String of Text "M6" from a Loaded Text Document that is in RichTextBox1, then get it to output the Lines that these strings (all of them) are found to a ListBox. Notepad can do this is Less then one second, with CTRL-F and NEXT NEXT NEXT feature, but It doesn't actually save the lines, what is the code for that? DreamWeaver will do this in Less then a Second also when you use the CTRL-F, and it tells the line and column where the sting is present.
My current code (No need to post it...) takes about 1 hour to find all the text in a 15,000 line document because it searches line by line for the string and the iterations of the sting start over at 1 and loads up the buffer at read.
Please be very descriptive as I'm not the most advanced coder I only make small programs for simple tasks and only very rarely.
Thanks,
Mike
My current code (No need to post it...) takes about 1 hour to find all the text in a 15,000 line document because it searches line by line for the string and the iterations of the sting start over at 1 and loads up the buffer at read.
Please be very descriptive as I'm not the most advanced coder I only make small programs for simple tasks and only very rarely.
Thanks,
Mike
Last edited by mjsmikey; Jan 16th, 2009 at 11:36 am.
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: pls advise - using access as database
- Next Thread: Step by Step to log in Windows's eventlog
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array assignment basic box button buttons center check code component connectionstring convert crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist excel fade file-dialog firewall folder ftp generatetags hardcopy image images input insert intel isnumericfuntioncall math monitor navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 port problem problemwithinstallation project record reports" savedialog searchvb.net select serial shutdown string survey tcp temp temperature text textbox timer toolbox trim updown user useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





