Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Off-Topic »
  • Archive »
  • Really Old Stuff »
  • General programming »
  • [VB] Performance issue
« previous next »
  • Print
Pages: [1]

Author Topic: [VB] Performance issue  (Read 31903 times)

Offline De KoFfieŠ

  • Sit! I said sit! Bad fish!
  • Staff
  • Initiate
  • *
  • Posts: 32
  • /me lovez trance! :D
[VB] Performance issue
« 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
Logged
De KoFfieŠ :para:
---------------------------------------
I gO wHeRe tHe sPeAkErS aRe bOoMiN' PeOpLe aRe sHrOoMiN' bOdiEs aRe mOviN' rAvErS aRe GrOoViN' tHe bEaTs aRe FLoWiN' gLoWsTiCkS aRe gLoWiN' aNd PeOpLe sHoWiN' hOw tHeY dAnCe tO tHe sOuNdS oF tRaNcE!

Offline GaryCXJk

  • <strong>Official Charas.EX Team Member</strong>
  • Exemplar
  • *
  • Posts: 1,586
  • FOUR OH FOUR'D
    • Multiverse Works
(No subject)
« Reply #1 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.
Logged

Play it now! Charas Breakout DX
Area91: for MUGEN and RPG Maker VX Ace stuff

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Off-Topic »
  • Archive »
  • Really Old Stuff »
  • General programming »
  • [VB] Performance issue
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum