Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy/Paste Control Arrays

Status
Not open for further replies.

MaxRaceSoftware

Programmer
Jun 10, 2002
36
US

i've written a VB6.0 program that uses Control Arrays
and "all" the Controls on the Form are Control Arrays

also using PictureBox arrays as a type of "Page/Container"
that have multiple PictureBoxes that each contain groups of
Label, ComboBoxes, and TextBox Contol arrays

i'm using these main PictureBoxes as sort of a "SS-TAB Sheridan Control"
along with ZOrder to popup different PictureBox Pages
that the User selects

i'm having trouble with VB6.0 "Copying and Pasteing" groups of Controls
or even just Copy/Paste 1 Control, especially with the TextBox Controls

i have 350+ Control arrays , and some where around 300 point ,
VB6.0 "reverses" the Index order and also changes the 3D shading effect
on the bottom part of the TextBox Control array groups i'm trying
to Copy/Paste on another PictureBox

the program runs extremely fast, compiles OK with no problems,
the main page PictureBoxes display very quick , overall the program works great,

except for loosing bottom 3D shading color on new TextBox arrays
and the exact time the TextBox shading problem occurs, the
Array Index are also reversed order , they always both happen at the same time !

i've looked at source code of Forms in WordPad.EXE to see if i can
spot a different coding method , but the entire source code looks
exactly the same as before or after the 3D shading and Index reversing occurs,
its not showing up in the source code .

i can Copy/Paste previous groups of Control Arrays
that work perfect ..that is until a certain point is reached, and
VB6.0 reverses the Array Index Order and changes the
3D shading on TextBox Controls

----------------------------------------------------------------------------
Anyone have ideas on how to correct this or what possible causes are ????????

What i'm now forced to do is add 1 TextBox at a time , that method
causes the correct Array Index Order and 3D shading on that TextBox
to be correct...i can't Copy/Paste groups of Control Arrays correctly !

i have about 50 or 60 more Control Arrays to add to finish the program
and i'd like to find out how to correct the Copy/Paste problem
in this program and future likewise programs .



MaxRace Software - Larry Meaux
ET_Analyst for DragRacers
Support Israel - Genesis 12:3
 

Paragraph 4: Because you system is running out of resources

There is an upper limit to how many controls (control arrays) you can add to a form. I would suggest that you add more forms to your project and start placing your controls there.

Good Luck

 
i can still continue to add Control Arrays on the Form
one at a time ...i've added over 50 more since the problem,

complies to .EXE no problems, works correctly, on different
OS and different computers tested so far

just can't Copy/Paste "GROUPS" of TextBox Control arrays correctly when the 3D shading problem occurs

MaxRace Software - Larry Meaux
ET_Analyst for DragRacers
Support Israel - Genesis 12:3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top