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. Adding Textboxes at runtime - too slow.

Adding Textboxes at runtime - too slow.

Scheduled Pinned Locked Moved Visual Basic
helpquestion
6 Posts 4 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.
  • S Offline
    S Offline
    Swammingo
    wrote on last edited by
    #1

    Hi, I have this wierd requirement from my boss which requires me to add around 8000 (8 thousand) textboxes to a panel. This i am doing at runtime ..ofcourse ;) using a while loop..but it is horrendous slow.. Is there a way out ???? Pls help. Thnx.

    D 1 Reply Last reply
    0
    • S Swammingo

      Hi, I have this wierd requirement from my boss which requires me to add around 8000 (8 thousand) textboxes to a panel. This i am doing at runtime ..ofcourse ;) using a while loop..but it is horrendous slow.. Is there a way out ???? Pls help. Thnx.

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

      Swammingo wrote:

      which requires me to add around 8000 (8 thousand) textboxes to a panel.

      No, you most definately do NOT want to do this, EVER! This will bog your app down so badly as to make it unusable and will quite possibly run Windows out of handle resources to boot. Also, just repainting this window will take about a week and a half. What on this earth requires you to put 8,000 controls on a form??? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Swammingo wrote:

        which requires me to add around 8000 (8 thousand) textboxes to a panel.

        No, you most definately do NOT want to do this, EVER! This will bog your app down so badly as to make it unusable and will quite possibly run Windows out of handle resources to boot. Also, just repainting this window will take about a week and a half. What on this earth requires you to put 8,000 controls on a form??? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        S Offline
        S Offline
        Swammingo
        wrote on last edited by
        #3

        Thnx a lot for reply. My boss wants me to create this desktop app in vb.net which requires a huge amount of textboxes. I had a meeting with him yesterday ....and his idea of this wierd code is to create a excel like application ...well a very small excel like app. He wants to have this form which looks like an excel sheet. Is there any other way by which i can achieve this ...(apart from using excel objects ..hehe ;) I hope you get the basic idea ... any help is really appreciable. thnx. Swammingo.

        C 1 Reply Last reply
        0
        • S Swammingo

          Thnx a lot for reply. My boss wants me to create this desktop app in vb.net which requires a huge amount of textboxes. I had a meeting with him yesterday ....and his idea of this wierd code is to create a excel like application ...well a very small excel like app. He wants to have this form which looks like an excel sheet. Is there any other way by which i can achieve this ...(apart from using excel objects ..hehe ;) I hope you get the basic idea ... any help is really appreciable. thnx. Swammingo.

          C Offline
          C Offline
          Chatura Dilan
          wrote on last edited by
          #4

          :laugh:You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database. Chatura Dilan

          S 1 Reply Last reply
          0
          • C Chatura Dilan

            :laugh:You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database. Chatura Dilan

            S Offline
            S Offline
            Swammingo
            wrote on last edited by
            #5

            Chatura Dilan wrote:

            You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database.

            C'mon ....any suggestions please ........;( Thnx...

            M 1 Reply Last reply
            0
            • S Swammingo

              Chatura Dilan wrote:

              You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database.

              C'mon ....any suggestions please ........;( Thnx...

              M Offline
              M Offline
              mtone
              wrote on last edited by
              #6

              Use a Datagrid

              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