Adding Textboxes at runtime - too slow.
-
-
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.
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
-
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
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.
-
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.
:laugh:You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database. Chatura Dilan
-
:laugh:You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database. Chatura Dilan
-
Chatura Dilan wrote:
You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database.
C'mon ....any suggestions please ........;( Thnx...