![]() |
OT - VB Programing Question
Can any VB programers help me with this. In my SE4Modder program editing a System Type consumes large amounts of memory (lie over half on my 256MB system) The reason would seem to be the large number of combo boxes. For every system object 9 combo boxes get loaded. So for a stantard system of 12 system objects you'd have 108 combo boxes loaded. (the combo boxes are control arrays so there are only 9 unique names)
The question is, should this be expect to consume that much of the computers resourses? It seems to run fine in WinXP but causes problems in ME (and I presume earlier Versions) I suspect maybe this is just a bad program design and I need to redesign the form using a grid control or something. Edit: For my amazing math skills http://forum.shrapnelgames.com/images/icons/shock.gif [ March 03, 2003, 01:12: Message edited by: DavidG ] |
Re: OT - VB Programing Question
9x12=108
But why do you need to have combos for each item, even if you're not editing it at the time? Wouldn't it be easier to have a listbox, and then have the comboboxes update to display/edit whichever object you've selected from the list? |
Re: OT - VB Programing Question
Yea I agree there are other methods to do it without so many combo boxes. I was more curious if it was normal that a combo box would consume that much of the computers resources.
|
Re: OT - VB Programing Question
They certainly do! I love VB, but it is notorious for being a bit hoggy in resources to begin with, and combo boxes are a major culprit. As suggested below, a redesign is in order (a grid would work, perhaps). http://forum.shrapnelgames.com/images/icons/icon7.gif
|
Re: OT - VB Programing Question
Quote:
|
All times are GMT -4. The time now is 01:01 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.