I have a form with many controls on it including two control arrays. I have recently added a user control which gives me the functionality I want in a special button.
The program works fine with just two copies of the user control on the form but when I add a third user control the IDE itself crashes without warning when I try to run the program within the IDE. The actual cause is that the system no longer recognises the index in either control array, it thinks the arrayed components should not be an array. So adding a user control damages the control array workings. If I remove the third user control the problem disappears, if I add it then the problem returns.
Interestingly, if I compile the program it runs happily in its .exe form with any number of user controls. Also I can add standard controls (ie non user controls) without the problem appearing.
It seems I am reaching some limit in the number and complexity of controls I can have to run the form in the IDE (but not compiled). Please don't tell me to redesign my interface - my users like the way it works and I have even won awards for it. It was built for Engineers and they like it complicated as it does lots of things !
Any ideas or hints as to what is happening here ?
Boggg1
The program works fine with just two copies of the user control on the form but when I add a third user control the IDE itself crashes without warning when I try to run the program within the IDE. The actual cause is that the system no longer recognises the index in either control array, it thinks the arrayed components should not be an array. So adding a user control damages the control array workings. If I remove the third user control the problem disappears, if I add it then the problem returns.
Interestingly, if I compile the program it runs happily in its .exe form with any number of user controls. Also I can add standard controls (ie non user controls) without the problem appearing.
It seems I am reaching some limit in the number and complexity of controls I can have to run the form in the IDE (but not compiled). Please don't tell me to redesign my interface - my users like the way it works and I have even won awards for it. It was built for Engineers and they like it complicated as it does lots of things !
Any ideas or hints as to what is happening here ?
Boggg1