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. an exception occurred while trying to create an instance of system.windows.forms.datagrid

an exception occurred while trying to create an instance of system.windows.forms.datagrid

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiohelpquestion
2 Posts 2 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 Gurus i m working with vb.net and making a windows application. any how i m not able to create an instance of the datagrid control on my form. whenever i drag and drop the datagrid on my form,i left with the error An exception occurred while trying to create an instance of system.windows.forms.datagrid.The exception was "External component has thrown an exception" I found the system.windows.forms.datagrid.dll in C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE copied this dll from another machine. and again trying to use it,but left with the same error. wht to do?

    S 1 Reply Last reply
    0
    • M MissionSuccess

      Respected Gurus i m working with vb.net and making a windows application. any how i m not able to create an instance of the datagrid control on my form. whenever i drag and drop the datagrid on my form,i left with the error An exception occurred while trying to create an instance of system.windows.forms.datagrid.The exception was "External component has thrown an exception" I found the system.windows.forms.datagrid.dll in C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE copied this dll from another machine. and again trying to use it,but left with the same error. wht to do?

      S Offline
      S Offline
      SimulationofSai
      wrote on last edited by
      #2

      :doh: You cant use a datagrid meant for Mobile app on a Windows Application.

      SG

      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