how do I exit a form ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon

    #1

    how do I exit a form ??

    I need to force a exit if a critical file is not found???


  • Robin Tucker

    #2
    Re: how do I exit a form ??

    Program exit:

    Application.Exi t

    Form close

    theForm.Close :)

    "Simon" <Simon@microsof tforums.com> wrote in message
    news:OrzydAvgFH A.2880@TK2MSFTN GP14.phx.gbl...[color=blue]
    >I need to force a exit if a critical file is not found???
    >
    >[/color]


    Comment

    • Armin Zingler

      #3
      Re: how do I exit a form ??

      Simon schrieb:[color=blue]
      > I need to force a exit if a critical file is not found???[/color]

      To close a form, call it's close method. To exit an appliation, exit all
      threads. To exit a thread, exit all procedures in reverse order. To exit a
      UI thread, close the form passed to Application.Run or the one set as the
      "startup object" in the project properties. To exit Application.Run without
      arguments, call application.exi tthread.

      Armin

      Comment

      • Cor Ligthert [MVP]

        #4
        Re: how do I exit a form ??

        Simon,
        [color=blue]
        >I need to force a exit if a critical file is not found???
        >[/color]
        me.close

        Cor


        Comment

        Working...