• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 893
  • Last Modified:

components disappeared

i get the following message in the task list

The referenced component 'AxMSDataGridLib' could not be found. Could not load the type library. Library not registered.

many of my components have suddenly disappeard and i cannot get them back i have tried reinstalling and that didnt work can someone please help (some of these components are on forms upgraded from vb6)

thank you
0
cwi2k
Asked:
cwi2k
1 Solution
 
HummusxCommented:
So you had a VB6 app which you upgraded to .NET, and now some of the components are missing?  Or it was already a .NET app with those components working fine and then they suddenly disappeared?  If it's former, you probably need to add references to the Dll's.
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
iboutchkineCommented:
If you have the previous version of your project then compare the Initialize Component section of the Windows Form Designer generated code in the program that doesn't work with one that does and see if you can see the error.
The error removed the form.controls.addrange line in the ini code.
The solution was to put the line back in with each of the controls.
i.e.
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnClear,
Me.btnLoad, Me.Grid})
0
[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

 
cwi2kAuthor Commented:
Hummusx
it was a vb6 app upgraded to vb.net it has worked for ages but suddenly it lost controls, though the controls are not available on other apps either so i think it is .net rather than the app

iboutchkine
you answered the same post but that is not it
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20535549.html
0
 
cwi2kAuthor Commented:
there are also no tools in the toolbox but the .net framework components do have tools selected in them
0
 
cwi2kAuthor Commented:
ignore that
0
 
cwi2kAuthor Commented:
i think that the components have become unregistered when i removed the package that i made of my program while i was testing it how do i re register these components
0
 
cwi2kAuthor Commented:
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnClear,

was the problem do you know why this was caused
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now