suggest me a control
-
hi all i m developing an application basically a text editor 1. which can able to open files having extension like *.txt, *.csv, *.xls 2. which can able to edit all file that can be opened . 3. which can able to search a string in whole file. 4. and get all these things done as soon as possible (even if the file contains large amount of data) i try to use rich text box control but that's not satisfying me because the speed of search is down when the file size increases. if some has any idea then please suggest me thnx in advance
help everyone
-
hi all i m developing an application basically a text editor 1. which can able to open files having extension like *.txt, *.csv, *.xls 2. which can able to edit all file that can be opened . 3. which can able to search a string in whole file. 4. and get all these things done as soon as possible (even if the file contains large amount of data) i try to use rich text box control but that's not satisfying me because the speed of search is down when the file size increases. if some has any idea then please suggest me thnx in advance
help everyone
Again, I ask, how much text are you trying to search?? Size in MB would help. If you're writing a text editor (are you?), there really isn't going to be anything you can do to make if search faster using the standard controls in the ToolBox. You'd have to find a third party control, but there isn't any way to tell how fast the search is going to be unless you try it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Again, I ask, how much text are you trying to search?? Size in MB would help. If you're writing a text editor (are you?), there really isn't going to be anything you can do to make if search faster using the standard controls in the ToolBox. You'd have to find a third party control, but there isn't any way to tell how fast the search is going to be unless you try it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007not much data (01,02,03,04,05.....so on) (not known how much user can enter. i will take 5 the limit) the text to be search is not more then 10 to 15 char long (as i think). can u suggest me whether i use multi threading of some thing else ....
help everyone
-
not much data (01,02,03,04,05.....so on) (not known how much user can enter. i will take 5 the limit) the text to be search is not more then 10 to 15 char long (as i think). can u suggest me whether i use multi threading of some thing else ....
help everyone
Multithreading doesn't make code any faster. If you're using the Find method of a RTB, the ONLY thing you can do to make it faster is to reduce the amount of text you're searching in, NOT the text you're searching for.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Again, I ask, how much text are you trying to search?? Size in MB would help. If you're writing a text editor (are you?), there really isn't going to be anything you can do to make if search faster using the standard controls in the ToolBox. You'd have to find a third party control, but there isn't any way to tell how fast the search is going to be unless you try it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Multithreading doesn't make code any faster. If you're using the Find method of a RTB, the ONLY thing you can do to make it faster is to reduce the amount of text you're searching in, NOT the text you're searching for.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
is it possible to 1. divide the file in number of parts and then run each loop individually in different thread. one question how can windows word pad search faster on same amount of data.
help everyone
Because it's not a RichTextBox. The RTB you're using is a GENERIC RTB box that is not optimized for ANY particular use. In your case, you'll have to implement your own code for representing the text and searching it. You cannot rely on the RTB to maintain the text string your searching and do the searching for you. You have to come up with your own representation and searching algorithm.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007