|
-
Jan 8th, 2010, 02:08 PM
#1
Thread Starter
Addicted Member
[RESOLVED] child forms limit
Just a quick question,
Is there a limit on how many child forms are open at one time? I am using myForm.Show() to display. When I have 12 open up it takes about 8 seconds. I then tried to open ~100 but they never open and I never get an error, the program just stops responding.
Thanks in advance
Scott
C:\DOS
C:\DOS\RUN
RUN\DOS\RUN
-
Jan 8th, 2010, 11:25 PM
#2
Re: child forms limit
It may depend on the available memory. It is says It has stopped responding it does not necessarily mean it has crashed, perhaps it is still loading all the forms and you just had to wait for it to finish.
-
Jan 9th, 2010, 03:44 PM
#3
Re: child forms limit
How would eight forms even fit on a screen? That many forms sounds like a design flaw to me.
-
Jan 10th, 2010, 03:38 PM
#4
Thread Starter
Addicted Member
Re: child forms limit
Actually I am using infragistics tabbed froms, so each form is full size inside the mdi parent and displaying the selected form on the screen and the rest appear like a tab on the top of the screen with the label being the forms name. It looks just like visual studios with multiple tabs accross the top for different classes open.
Last time I tried to open 100 forms I let it run for about 30 minutes and it was still not responding.
C:\DOS
C:\DOS\RUN
RUN\DOS\RUN
-
Jan 10th, 2010, 05:29 PM
#5
Re: child forms limit
If that's the case, then you need to look to see what the form is doing when it's loaded/displayed... still.... 100 forms... that's an awful lot.
-tg
-
Jan 10th, 2010, 06:43 PM
#6
Re: child forms limit
There is no point in loading 100 forms, because the user isn't going to be able to do anything useful with them. Scrolling left and right to find the right form would be a nightmare.
However, if this is what you are doing, then I suggest you get a little more efficient about it. Don't load forms you potentially won't need into memory right away. You can create 100 tabs, without actually creating 100 forms. Just declare a variable of the appropriate form type and put it in the Tag property. When a tab receives the focus, you initialise the variable in the Tag.
-
Jan 12th, 2010, 11:17 PM
#7
Thread Starter
Addicted Member
Re: child forms limit
I like your idea of making a variable of the type of form and using that, but I am not sure if I can. The tabbed forms thing on infragistics takes all mdi child forms and turns them into a tab on the mdi parent but in order for them to be picked up they have to be shown .show(). or maybe I am missing how to declair a variable?
C:\DOS
C:\DOS\RUN
RUN\DOS\RUN
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|