Charas-Project

Off-Topic => Really Old Stuff => Archive => General programming => Topic started by: De KoFfieŠ on February 12, 2003, 09:41:28 PM

Title: [VB] Performance issue
Post by: De KoFfieŠ on February 12, 2003, 09:41:28 PM
Alrighty, i'm just working on an app with skin support, just to try it out :D (i like trying out ;) )

Now, i have an ini file which allows the "skin-designer" to completly change the positions of the buttons, the width's and heights etc.
When the program loads (or when a new skin is loaded in), i start  looping through pictureboxes, some will function as buttons, others as labels etc..
so every control is actualy a picture, and those pictureboxes are loaded by using control arrays .

Now in total there are 15 controls loaded this way, they get moved to another spot in the form (according to the information in the ini file) and change by width and height.
But the loading now takes a bit longer, one or two seconds at least.

What do you guys think? Should i do this another way, or do you think that control arrays are the best? Or should i create each picture box already in design time and then place each control on the correct spot etc..?

I'd like to hear your suggestions, opinions, etc ... :D
Title:
Post by: GaryCXJk on February 25, 2003, 12:19:08 AM
2 seconds is not so long, but if it doesn't take much time to change it and if the chances of bugs are low, you could that other thing.