Results 1 to 4 of 4

Thread: [RESOLVED] Keep app alive

  1. #1

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Resolved [RESOLVED] Keep app alive

    Hi all

    I know how to do this in VB but not in c#.

    I have an application that I want to stay live till I close the last form. How do I do this in C#? I am using 2015 VS

    Thanks
    Gary
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  2. #2
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Keep app alive

    Are you using Application.OpenForms in your VB app? If yes, you can also do the same in C#.
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  3. #3
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Keep app alive

    Quote Originally Posted by GaryMazzone View Post
    Hi all

    I know how to do this in VB but not in c#.

    I have an application that I want to stay live till I close the last form. How do I do this in C#? I am using 2015 VS

    Thanks
    Gary
    Does this help? c# - How I can close a 1st form without closing the full application? - Stack Overflow
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  4. #4

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Keep app alive

    Thanks that should do it.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width