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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to exit in C#.NET CF Application?

How to exit in C#.NET CF Application?

Scheduled Pinned Locked Moved C#
csharphelptutorialquestionworkspace
6 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.
  • S Offline
    S Offline
    Sri harini
    wrote on last edited by
    #1

    Hi I am developing windows application using C#..In my application i am using Environment.Exit()..Now my application exited.. But my another application i am developing windows mobile 5.0 application using .NET Compact framework 2.0 C#.NET .The environment.exit() and application.exit()also not supported.I have used this.close() and this.dispose()...application not exit.I don't know how to exit my application...please anybody help me... Finally i am using System.Diagnostics.Process.GetCurrentProcess().CloseMainWindow(); This one also not closing.. Can i use System.Diagnostics.Process.GetCurrentProcess().Kill(); that kill method?..Is it correct way to exit()?.. If anybody knows please help me... Bye

    J 1 Reply Last reply
    0
    • S Sri harini

      Hi I am developing windows application using C#..In my application i am using Environment.Exit()..Now my application exited.. But my another application i am developing windows mobile 5.0 application using .NET Compact framework 2.0 C#.NET .The environment.exit() and application.exit()also not supported.I have used this.close() and this.dispose()...application not exit.I don't know how to exit my application...please anybody help me... Finally i am using System.Diagnostics.Process.GetCurrentProcess().CloseMainWindow(); This one also not closing.. Can i use System.Diagnostics.Process.GetCurrentProcess().Kill(); that kill method?..Is it correct way to exit()?.. If anybody knows please help me... Bye

      J Offline
      J Offline
      joon vh
      wrote on last edited by
      #2

      Have you tried Application.Exit?


      Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

      S 1 Reply Last reply
      0
      • J joon vh

        Have you tried Application.Exit?


        Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

        S Offline
        S Offline
        Sri harini
        wrote on last edited by
        #3

        Yes, already tried Application.Exit()...that one Not exiting..but Application hanging.. I tried this.close() and this. dispose() methods..My application closing, but background still running..not exiting...Do you know any exiting methods supported in compact framework?..please help me.. Thanks in advance.... Bye

        J 1 Reply Last reply
        0
        • S Sri harini

          Yes, already tried Application.Exit()...that one Not exiting..but Application hanging.. I tried this.close() and this. dispose() methods..My application closing, but background still running..not exiting...Do you know any exiting methods supported in compact framework?..please help me.. Thanks in advance.... Bye

          J Offline
          J Offline
          joon vh
          wrote on last edited by
          #4

          I suggest you read this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1410298&SiteID=1


          Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

          S J 2 Replies Last reply
          0
          • J joon vh

            I suggest you read this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1410298&SiteID=1


            Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

            S Offline
            S Offline
            Sri harini
            wrote on last edited by
            #5

            Ok Thanks joon...I will read the forum..If any doubt i will ask again...Thanks a lot.. Bye

            1 Reply Last reply
            0
            • J joon vh

              I suggest you read this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1410298&SiteID=1


              Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

              J Offline
              J Offline
              joon vh
              wrote on last edited by
              #6

              it seems like you're not the only one with the problem ;) I don't know CF myself, but I hope I could help. Good luck.


              Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

              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