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. C#
  4. Exception creating a control

Exception creating a control

Scheduled Pinned Locked Moved C#
help
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.
  • C Offline
    C Offline
    chito
    wrote on last edited by
    #1

    Hello, I am using one third party control. When I am going to place that control on my form it is showing following error. An exception occurred while trying to creating an instance of "XPMenus.Menus.MenuControl". The Exception was "the type of intializer for "XPMenus.Menus.MenuControl" threw an exception. chito.

    J 1 Reply Last reply
    0
    • C chito

      Hello, I am using one third party control. When I am going to place that control on my form it is showing following error. An exception occurred while trying to creating an instance of "XPMenus.Menus.MenuControl". The Exception was "the type of intializer for "XPMenus.Menus.MenuControl" threw an exception. chito.

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      chito wrote: the type of intializer for "XPMenus.Menus.MenuControl" This basically means that there was an exception thrown in the static constructor of the XPMenus.Menus.MenuControl class. A static constructor is generally used to initialize some global/static data for the class because it is called before the first time the class is used (if I remember correctly). James "It is self repeating, of unknown pattern" Data - Star Trek: The Next Generation

      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