Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-10-2009
Member
 
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)?
Reply With Quote
  #2  
Old 24-10-2009
Member
 
Join Date: May 2008
Posts: 2,008
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.
Reply With Quote
  #3  
Old 24-10-2009
Member
 
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.
Reply With Quote
  #4  
Old 24-10-2009
Member
 
Join Date: May 2008
Posts: 2,008
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.
Reply With Quote
  #5  
Old 29-10-2009
Member
 
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.
Reply With Quote
  #6  
Old 29-10-2009
Member
 
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...
Reply With Quote
  #7  
Old 29-10-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to close application in VB"
Thread Thread Starter Forum Replies Last Post
Duke Nukem forever the application was unable to start correctly(0xc0150002).click ok to close application Daksha90 Video Games 3 22-06-2011 10:38 AM
How to close all of Application in a snap? Nalini_sh Windows Software 6 04-02-2010 10:40 AM
How to close freezed full screen application on XP Villiers Windows Software 3 09-10-2009 10:51 PM
Blackberry 8130 camera says close application Chilton Portable Devices 3 19-05-2009 09:22 PM
Application closes with the close of Form Sadashiva Software Development 3 07-04-2009 10:53 AM


All times are GMT +5.5. The time now is 01:48 AM.