| | |
Find Text String and Output Line Numbers Text Falls on
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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 .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons click code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationthesis dissertationtopic dosconsolevb.net editvb.net employees excel exists firewall forms html image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity open pdf picturebox2 port print printpreview record regex reports" reuse right-to-left save savedialog search serial settings socket sqldatbase sqlserver storedprocedure string temp textbox timer transparency txttoxmlconverter useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic.net visualstudio.net web wpf wrapingcode xml





