Unable to create an instance of datagrid in windows forms
-
Respected Sirs i m working in vs.net 2003 and making a windows application in vb.net. i m not able to drag and drop the datagrid control on my windows form. error is "an exception occurred while trying to create an instance of system.windows.forms.datagrid".The exception was "external component has thrown an exception" maybe my dll for datagrid has been corrupted. plz suggest some remedy,as my work has been stopped.
-
Respected Sirs i m working in vs.net 2003 and making a windows application in vb.net. i m not able to drag and drop the datagrid control on my windows form. error is "an exception occurred while trying to create an instance of system.windows.forms.datagrid".The exception was "external component has thrown an exception" maybe my dll for datagrid has been corrupted. plz suggest some remedy,as my work has been stopped.
First, close your project, then close Visual Studio and restart the machine. When everything comes back up, try opening your project again and dragging the control to your form. If that doesn't do it, try reinstalling the .NET Framework 1.1[^].
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Respected Sirs i m working in vs.net 2003 and making a windows application in vb.net. i m not able to drag and drop the datagrid control on my windows form. error is "an exception occurred while trying to create an instance of system.windows.forms.datagrid".The exception was "external component has thrown an exception" maybe my dll for datagrid has been corrupted. plz suggest some remedy,as my work has been stopped.
I had this same problem a few months back, I had to reinstall visual studio as well as the framework. Try both. It worked for me.