|
-
Dec 21st, 2003, 12:40 AM
#1
Thread Starter
Lively Member
"The Case of the Disappearing Controls" by Cat "SOLVED"
controls in question: picture box and MSChart
log file messages:
Line 20: Property OleObjectBlob in chtBGCurveChart had an invalid file reference.
Line 17: Cannot load control chtBGCurveChart.
Line 34: Property Picture in Picture1 had an invalid file reference.
senario: each time I open the project I get these errors. I've changed the location of the original image used and even renamed it. But, I deleted the original picture box control and pointed to the new image name and location. That didn't take care of it.
And the chart control problem may have originated from renaming the form. But a new chart control added to the renamed form should work! Oh, and I also renamed the chart control.
All code is reflecting the renamed controls, form, and images.
The problem still persists.
Cat
Correction: the picture box control does not disappear -- it simply does not load the image. The chart control does disappear.
Last edited by Cat; Dec 23rd, 2003 at 01:55 AM.
-
Dec 21st, 2003, 03:59 PM
#2
Thread Starter
Lively Member
Anybody know why this is happening?
Thanks,
Cat
-
Dec 21st, 2003, 06:19 PM
#3
Supreme User
It doesnt laod the image in the pic box because im guessing when you load your project in VB you get an error "Failed to load blahblah. Would you like to continue?" Pressing yes loads the project, but with errors. In your case the image isnt loaded.
-
Dec 22nd, 2003, 12:23 AM
#4
Thread Starter
Lively Member
What do I need to do to remedy this? I do the same work over and over just to have it bomb again.
Renaming form, controls, images and changing image location must have caused it in the first place. But now all controls have been replaced and all code reflects the correct names.
Why does it keep happening?
Cat
-
Dec 22nd, 2003, 12:29 PM
#5
Supreme User
I take it you must be loading the project of a CD, or laoding the project where you have controls missing. The key is to start a project, and dont move any forms, controls used, dont delete or rename them. Does this help?
-
Dec 22nd, 2003, 01:04 PM
#6
Thread Starter
Lively Member
I started the whole project over from scratch. NO renaming, moving, etc. and it still is happening.
The strange thing is that it doesn't always happen!!
I'm at my wit's end. Could it have anything to do with installing SP3 a few days ago?
Cat
I've spent 3 days on this problem and I'm not any further.
I'm going to start a new project with only a few forms and put a picture box on each of them and then record each step I take.
PS - the picture box control is intrinsic and always available and the image I'm using in on the c drive
-
Dec 22nd, 2003, 01:14 PM
#7
Fanatic Member
I had this same exact problem. What I did was start the project and then the message came up. I would just hit yes to continue. Then I would load the picture back into my picture box. Then the form that I had the picture box on I would right click it in project explorer window and go to save as. Then save it again and it will tell you this file already exist do you want to override. Just hit yes and it will save over the old form. Then it should create and formName.frx file in your project's folder. Just leave the file alone. That is what I did and I get no more messages. Hope this helps!
Motto: Anything for a laugh.
Getting second place only means you are the first loser to cross the finish line.
-
Dec 23rd, 2003, 01:48 AM
#8
Thread Starter
Lively Member
Maldrid,
God Bless You!! I may have enough sanity left to finish this project after all!!
Yes, I was deleting the .frx files [b]sometimes[b]!! I thought they just cluttered up the folder, and it was much easier to take stock of what I had and what I still needed. And then when the log files started cluttering up the folder also, I deleted both file types more often. And that explains why the problem was sporadic!!
I've been systematically adding pic boxes, code, forms, and other controls on a test project trying to find out "when" and "what" the cause was. I most likely never would have deleted any .frx files from that folder in the first place, and so I never would have discovered the solution!!
Thanks a million on behalf of many people (and diabetic pets) who will use this program,
Cat
-
Dec 23rd, 2003, 08:28 AM
#9
Supreme User
DONT DELETE IT UNLESS YOU KNOW WHAT IT IS
-
Dec 23rd, 2003, 11:01 AM
#10
Fanatic Member
You are quite welcome Cat. I know how fustrating it is, especially when the problem has nothing to do with your code hehe! Luckly for me I was too lazy the second time to delete the frx files and realized that was my problem the first time I deleted them. Now who says being lazy does not pay off.
Good luck with the rest of your project!!
Motto: Anything for a laugh.
Getting second place only means you are the first loser to cross the finish line.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|