Re: Error during design time
a guess (I know I may have totally missed the point):
You design your appication in ide dropping controls; sometimes you copy nad paste them (answering "yes" to the windowBox that appears).
You add code, then you modify ide deleting some of those pasted controls. Is this the case?
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
Re: Error during design time
It's a huge application and copy & paste of controls could have happened at some stage.
I understand, if any of the controls in control array is deleted and the same is refereed, then error message 'Control array element 0 doesnot exist' can some. But I think this is not the case, as error doesnot appear always. Moreover, it doesnot appear when executable is run.
This behaviour is very irregular. For the same sequence of operation, error doesnot appear always. This makes it very difficult to debug also.
Re: Error during design time
So, it seems as if you have a thirdy part (or a your developed) OCX (or maybe you sublcassed a standard control) and as if it has a bug inside in its initialization code...Or maybe you need to install a servicepack for Vb (suggested: from servicepack 4 to above)
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
Re: Error during design time
I am using VB5.0 Enterprise edition. But, I don't know which is the service pack. How to get and install latest service pack?
Yes. I am using third party controls like sheridan controls and crystal reports. But, could it be the problem with any of them? Or, could it be the problem with Microsoft controls itself?
Re: This is beyond my knowledge
Sorry, I do not have an answer about where exactly matter is. You may find informations at microsoft.com (look for downloads to search a servicepack for vb5 enterprise edition), at sheridan (do not know the page) and at seagate.
Good luck.
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater