Results 1 to 7 of 7

Thread: How to close application in VB

  1. #1
    Join Date
    May 2009
    Posts
    640

    How to close application in VB

    Starting a program in VB, I drive another application by sending commands to perform. But that is not the problem. I would like to end this program, close this application. I tried something like:
    Code:
    System.Application.DisplayAlerts = False
    But I feel that this only works for Excel. Using this command to my app, I have a message error: "Object does not support this property or method." Is there more generally a command that disables the dialog boxes, regardless of the software (not necessarily of the Office)?

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: How to close application in VB

    I do not see how DisplayAlerts closes an application. This is a property that disables the warning message in Excel. Nothing to do with completing a program.

    To answer your question, there is no command to disable the VB dialog boxes in other applications as Office, and fortunately.

  3. #3
    Join Date
    May 2009
    Posts
    640

    Re: How to close application in VB

    Yes sorry, I meant "disable dialogs". Otherwise, I found in my application with an option to not ask the user validation at the close. Suddenly, with a "System.Application.Quit", the application quits without asking.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: How to close application in VB

    But what exactly you wanted? A command to disable the MessageBox or a command to exit a program? Disable dialog box like "Are you sure you want to leave." or anything else? This is not the same thing too.

  5. #5
    Join Date
    Feb 2009
    Posts
    96

    Re: How to close application in VB

    if your trying to close the program it would be me.close()

    but I can't really understand what your asking for.

  6. #6
    Join Date
    Jan 2009
    Posts
    1,738

    Re: How to close application in VB

    Your problem is not at all understandable, please detail it a bit so one can understand what you are really looking for. Do post back...

  7. #7
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How to close application in VB

    Periodically it may be necessary for a programmer to close down another application from Visual Basic code. For more information, you need to check out the following link. VB doesn't have the best memory management and calling end doesn't always clean the memory properly if there are still loaded forms present.

Similar Threads

  1. Replies: 3
    Last Post: 22-06-2011, 10:38 AM
  2. How to close all of Application in a snap?
    By Nalini_sh in forum Windows Software
    Replies: 6
    Last Post: 04-02-2010, 10:40 AM
  3. How to close freezed full screen application on XP
    By Villiers in forum Windows Software
    Replies: 3
    Last Post: 09-10-2009, 10:51 PM
  4. Blackberry 8130 camera says close application
    By Chilton in forum Portable Devices
    Replies: 3
    Last Post: 19-05-2009, 09:22 PM
  5. Application closes with the close of Form
    By Sadashiva in forum Software Development
    Replies: 3
    Last Post: 07-04-2009, 10:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,550,797.93490 seconds with 17 queries