Multiply panels or forms? |
![]() ![]() |
Multiply panels or forms? |
Dec 2 2004, 01:06
Post
#1
|
|||
![]() Newbie Group: Posters Posts: 5 Joined: 23rd October 2004 Member No.: 61,772 |
Been woundering for a while if using multiply panels on a single form is faster or more benefical than using lots of forms. Wouldn't mind getting some other peoples opinions of the advantages and disadvantages
|
||
|
|
|||
Dec 2 2004, 16:27
Post
#2
|
|||
|
Newbie Group: Posters Posts: 21 Joined: 2nd December 2004 Member No.: 100,101 |
No idea about the speed, but interested to find out.
From purely a dev view I would rather use multipleforms for 2 reasons: 1) The ide wysiwyg view would be unusable with multiple pannels 2) I believe that until you show a form it will not use any resources, whereas a hidden pannel is just not rendered to the screen it still uses resources Any other comments? Brian www.bbpsoftware.co.uk |
||
|
|
|||
Dec 2 2004, 17:14
Post
#3
|
|||
![]() Newbie Group: Posters Posts: 5 Joined: 23rd October 2004 Member No.: 61,772 |
QUOTE 1) The ide wysiwyg view would be unusable with multiple pannels 2) I believe that until you show a form it will not use any resources, whereas a hidden pannel is just not rendered to the screen it still uses resources Yeah these are the 2 things ive come up with to. 1) I had the same problem at first. So in the design view i layed all the panels out next to each other so at runtime when i wanted a panel i called a method that moved it to 0,0 and moved it to the front. 2) This is the other thing i was thinking. It will take the form longer to load at first since everythign will be loaded. However like you say it would use more resources. Think i might try using multiply forms see how it affects performance. Still wouldn't mind hearing other peoples views on the matter. |
||
|
|
|||
|
Dec 3 2004, 08:42
Post
#4
|
||
![]() Newbie Group: Posters Posts: 44 Joined: 18th February 2003 From: Llanberis, Gwynedd, UK Member No.: 2,892 |
From a pure performance perspective, multiple forms is the way to go. Loading all the controls on all the panels at start-time is not going to do you startup time any favours. Also, as it is so rightly pointed out, loading all the controls at start-up will consume vital resources when it's unnecessary.
Funnily, this is actually the same feature that I'm dealing with at work right now. I'm using a strongly-typed stack with a capacity threshold to manage form navigation. The threshold limits the number of forms I can have open (which is what I need). Also, the strongly typed nature of the stack elimates unnecessary boxing/unboxing. Two pluses for perf -------------------- Neil Cowburn
Microsoft MVP (.NET Compact Framework) www.opennetcf.org | http://blog.opennetcf.org/ncowburn/ |
||
|
|
|||
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
|
87 | Paul (MVP) | 24,637 | Yesterday, 20:13 Last post by: 3sade |
![]() |
Please help me locate a topic or trick to format the flash storage in another filesystem using storage manage |
5 | lastnikita | 72 | Yesterday, 22:35 Last post by: lastnikita |
![]() |
wanted hk3 italian or english | 2 | laigonz | 62 | Yesterday, 19:29 Last post by: laigonz |
![]() |
Touch HD or Touch Pro (soon to be Vario IV) | 0 | flyswat | 58 | Yesterday, 17:37 Last post by: flyswat |
![]() |
Samsung launcher (or better alternative) for Clean ROM ? | 2 | FlorianO | 105 | Today, 03:18 Last post by: mobilehappy |
![]() |
Battery Life with Widgets vs. Today 1 or 2 | 0 | null4end | 13 | Today, 05:18 Last post by: null4end |
|
Lo-Fi Version | Time is now: 9th January 2009 - 08:38 |
Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!
ActiveKitten |
Aiko Solutions |
Ateksoft |
Binaryfish |
Conduits |
DeveloperOne |
eSoft Interactive |
FTouchSL |
Inesoft |
Lingvosoft |
monocube |
Mykesoft |
OmegaOne |
Omnisoft |
Opera Software |
Resco |
SBSH |
Slipstream Solutions |
SPB Software House |
Splashdata |
Sprite Software |
Syncdata |
Teksoft |
VITO |
WalkingHotSpot |
WebIS |
z4soft
Would your company like to become a 'Plus Partner'? Click Here to contact us!