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 |
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.