View Single Post
  #9 (permalink)  
Old 2nd March, 2007, 11:39 AM
Gizmo's Avatar
Gizmo Gizmo is offline
Chief BBS Administrator
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 14,947
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Quote:
Originally Posted by MrSeanKon
However it is not optimized.
Imagine that the Card1 has many labels and textboxes.
Therefore the program will spend some extra time cos the foreach loop checks all controls (labels + textboxes) and compares if it the control is a label or a textbox.
This is not a big problem cos CPUs are very fast and the OcBible inputs are not millions.
BTW how we can optimize it????
Can we use e.g. the Tabindex property GKR I am impatient.....
This is exactly why you should place the relevant controls in their own group box, to enable you to reduce the amount of controls you have to iterate over. You can have group boxes inside other group boxes as well.....get the idea?

Quote:
Originally Posted by MrSeanKon
P.S.
Am I a good student??????
Leet! http://www.geocities.com/seankoniaris/Smiles/leet.gif
You are doing just fine. At this point, you probably have a better knowledge of C# and .NET than I do. I just know programming.
__________________
Avatar and sig graphic by Pitch. Subscribers!
Ask about a custom graphic or avatar today!
 
Later,
Gizmo
Thermal Diode Mod and Direct-Die Water Block
8-Cheetah 18GiB U-2 SCSI
MegaRAID Enterprise 1500/128MiB
Samsung SyncMaster 955DF
TTGI/Superflower TTS-520 PSU
 

 
AOA Team filesAOA Team wcgAOA Team fah
Reply With Quote