We help IT Professionals succeed at work.

VB6 Crashes in Design View

baasassasin
baasassasin asked
on
391 Views
Last Modified: 2010-04-07
The title of this post says it all.  Experts, have at it...I'll be very impressed if you can come up with a quickie for this (500 pts on the board):

I open up VB 6; I can view the code, and execute the code within the VB environment, but I can't view the design of anything.  In other words, everytime I try to view a form in design mode, VB 6 Crashes with one of those generic windows errors.

I've reinstalled VB and it's still not working.

I recently instaleed Win 2K3 Server and enabled folder redirection, but all of my program files are local.  I tried to switch users back to the local machine and run VB from there, it made no difference.

I appreciate the help.

Comment
Watch Question

Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
Have you installed the VB6 Service Pack 6?

Author

Commented:
I just installed it...no help...same thing.

Author

Commented:
Something to note, I have two MDI forms, the main window and the splash screen.  The only form I can view in design is the main MDI form...everything else crash and burns immediately.

Author

Commented:
I've just updated CommonControls and VB6 Runtime Objects...no help...same thing.  I would throw this PC out the window if there was a window in my office.

Commented:

Do you use some particular (third party) OCX in your forms ?
Those could crash when trying to intialize...

Author

Commented:
Nope.  All controls are straight Microsoft.  I'm going to clean my registry out today and I'll let you guys know if it helped.

Author

Commented:
Ok...windows sucks.  Not really, but I'm a little angry.  I just uninstalled VB, cleaned out my registry with Reg Mechanic (cleaned 349 reg entries), and then I reinstalled VB...no success.  I think there's something wrong with the controls or something.  If I open the .frm file in notepad of one of the crashing forms and remove all of the object references, the form will open in design.  As soon as I make a reference to a single object, even a text box, then open in design...the whole thing crashes.  I've got some other funky stuff going on on my PC, so I will format and reinstall.  I'm going to reinstall VS2005 though.  I'll let y'all know how it works out.

Commented:
I found this newsgroup thread

http://groups.google.it/group/microsoft.public.vb.bugs/browse_thread/thread/6d4ce7f373be934/9b724c4169de8ec5?lnk=st&q=ide+crashing+adding+controls&rnum=9&hl=it#9b724c4169de8ec5

that says:

"... developers must be members of (at least) local admin."

Did you tried this?

Author

Commented:
Man, I thought you had the answer.  When I opened the registry and saw the permissions, my domain user name didn't have permissions on the keys stated in the link above.  However, when I changed the reg key permissions and rebooted, I still received the same error in the vb environment.  I could spend another few days troubleshooting this, but I'm going to cut my losses and wipe my HDD.  I've got lots of junk on this PC anyway...time for some spring cleaning.  I think you are very close with the registry permissions.  If I wipe, then reinstall VB using my domain account, and it works, I'd say it was a permission issue (and you get the points).  I'll post back later today once I'm back online.  Thanks for your help.

Author

Commented:
PROBLEM FIXED:

Yes, I admit, I've taken the losers way out.  I wiped and reinstalled, but it worked.  Wiping and reinstalling is never my first answer, but I would've spent more time than anything troubleshooting.  My guess is that it was a combination of permissions and registry.

If you have the same problem as above and can't find the answers, here's what I did:

1.  Back up your data (you should already have just about everything backed up if you're a real IT guy).
2.  Format your drive.
3.  Re-install OS
4.  Join domain
5.  Re-install VB

This is potentially the worst solution ever posted on Experts-Exchange, but saved me time.  I'm ashamed.

Note:  I haven't installed any service packs on VB yet, so no points for leew.  Cheers Hit MN.

Author

Commented:
Hit man, post a final so I can award you.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.