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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class not a loaded control class ??

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
In my VB 5 project, when loading in design mode, I get message

"Class MSDBGrid.DBGrid of control DBGrid1 was not a loaded control class."

Do I need to change the Project --> References or just how can I
prevent this error ?

Thanks for any suggestions. John
 
It's telling you that it wasn't able to load the control for some reason, and that error pops up when the IDE discovers some of your code that references it.

I've found that this can happen for one or more reasons:

1) You don't have a development license for the control
2) The control got unregistered for some reason
3) Your project file got corrupted.

In the case of #3, you can open your project file in a text editor and fixup/remove the reference to the control. Then, after opening the project in the IDE again, you can set a reference, and it should be OK.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top