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. Global.asax file with Window Applications

Global.asax file with Window Applications

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

    Hi I was trying to use Application_Start method of Global.asax file to catch Exceptions. Can we add Global.asax to Window application. I am not able to add it. Can anyone help me on this. Thanks & Regards Inderjeet Kaur

    Inderjeet Kaur Sr. Software Engg

    C A C 3 Replies Last reply
    0
    • I Inderjeet Kaur

      Hi I was trying to use Application_Start method of Global.asax file to catch Exceptions. Can we add Global.asax to Window application. I am not able to add it. Can anyone help me on this. Thanks & Regards Inderjeet Kaur

      Inderjeet Kaur Sr. Software Engg

      C Offline
      C Offline
      Calla
      wrote on last edited by
      #2

      You can't use the Global.asax in a WinForm application AFAIK. Maybe you should have a look at the System.Windows.Forms.Application.ThreadException event instead.

      1 Reply Last reply
      0
      • I Inderjeet Kaur

        Hi I was trying to use Application_Start method of Global.asax file to catch Exceptions. Can we add Global.asax to Window application. I am not able to add it. Can anyone help me on this. Thanks & Regards Inderjeet Kaur

        Inderjeet Kaur Sr. Software Engg

        A Offline
        A Offline
        Arun Jacob
        wrote on last edited by
        #3

        Global.asax is an ASP.NET specific application file. Better you read this, http://msdn.microsoft.com/en-us/library/1xaas8a2%28VS.71%29.aspx[^] :)

        Arun Jacob http://codepronet.blogspot.com/

        1 Reply Last reply
        0
        • I Inderjeet Kaur

          Hi I was trying to use Application_Start method of Global.asax file to catch Exceptions. Can we add Global.asax to Window application. I am not able to add it. Can anyone help me on this. Thanks & Regards Inderjeet Kaur

          Inderjeet Kaur Sr. Software Engg

          C Offline
          C Offline
          carlecomm
          wrote on last edited by
          #4

          when you create a winForm project. you will find a file called "program.cs"; you can write codes there

          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