Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Unable to create an instance of datagrid in windows forms

Unable to create an instance of datagrid in windows forms

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiowinformshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MissionSuccess
    wrote on last edited by
    #1

    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.

    D K 2 Replies Last reply
    0
    • M MissionSuccess

      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.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M MissionSuccess

        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.

        K Offline
        K Offline
        Kevin Nicol
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups