Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. suggest me a control

suggest me a control

Scheduled Pinned Locked Moved Visual Basic
performancehelp
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eyes2007
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • E eyes2007

      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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      E 2 Replies Last reply
      0
      • D Dave Kreskowiak

        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

        E Offline
        E Offline
        eyes2007
        wrote on last edited by
        #3

        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

        D 1 Reply Last reply
        0
        • E eyes2007

          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

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          E 1 Reply Last reply
          0
          • D Dave Kreskowiak

            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

            E Offline
            E Offline
            eyes2007
            wrote on last edited by
            #5

            The size of text file is about of 10 to 15 MB. which may or may not contain numeric value. (the demo file i m working on contains numeric data.)

            help everyone

            1 Reply Last reply
            0
            • D Dave Kreskowiak

              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

              E Offline
              E Offline
              eyes2007
              wrote on last edited by
              #6

              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

              D 1 Reply Last reply
              0
              • E eyes2007

                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

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups