473,396 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Clicking window close button doesn't terminate VB program

8
i've created a CAB file using PDW of Visual Basic 6.0 and also installed it in the system.While running the software, when i click on the windows default "close" it does'nt terminate.
Oct 4 '07 #1
6 3474
Killer42
8,435 Expert 8TB
Perhaps your code is cancelling the form's unload event. Or you have another form which hasn't been unloaded.

Does it work when run from the IDE?
Oct 4 '07 #2
phons
8
Perhaps your code is cancelling the form's unload event. Or you have another form which hasn't been unloaded.

Does it work when run from the IDE?


Thank you so much for reply sir. Yes it does work in IDE. [X] or Alt F4 does not work on MDI form of my package it does not close instead it woks in background and will have to close in task manager.

Can you please tell me, Can i install this package in server. i have used MS access as backend what steps should i take to install it in server.????? please reply as early as possible sir its very urgent
Oct 9 '07 #3
geowhe
3
i've created a CAB file using PDW of Visual Basic 6.0 and also installed it in the system.While running the software, when i click on the windows default "close" it does'nt terminate.
Have you tried using QueryUnload as shown below?

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
cmdClose_Click '-->
End Sub

This code captures the close button command and sends links to the cmdClose code written for closing the window. George
Oct 9 '07 #4
phons
8
Have you tried using QueryUnload as shown below?

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
cmdClose_Click '-->
End Sub

This code captures the close button command and sends links to the cmdClose code written for closing the window. George


Thank you so much it really helped :)
Oct 9 '07 #5
Killer42
8,435 Expert 8TB
Glad to see it's sorted out. :)

You really should have mentioned earlier though if it was an MDI form. They don't always behave the same as a regular form.
Oct 9 '07 #6
phons
8
Glad to see it's sorted out. :)

You really should have mentioned earlier though if it was an MDI form. They don't always behave the same as a regular form.


Thank you so much sir. Your forum is helping a lot with my project thank you:)
Oct 10 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
3
by: Steve | last post by:
Hi, I have a nice little script that works well displaying images on my website. It's a script where if you clik a thumbnail image a pop up window opens that contains a larger version of the same...
6
by: Sujan | last post by:
Hello all, Help me! -------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script language="JavaScript"> <!--
6
by: Joe | last post by:
Hi, I have a form with Submit and cancel button. When Cancel button is clicked I want to close the browser window. Here is my sample form. To make things simple I have removed the submit button....
2
by: Claudia Fong | last post by:
Hello everybody, I have a Menu form where I have a button. The user should click the button and the program should open another form call register form. I want that when the program show the...
4
by: drodrig | last post by:
Hi. I am trying to close/kill all processes that show visible windows on Windows XP. So far I've created a script that uses win32gui.EnumWindows to iterate through all windows, check for which...
2
by: Jonathan Boivin | last post by:
Hi people, Let me introduce to how I get this error. I have a form which load all my bills representation depending upon filters which each bill is a usercontrol of my own having some...
4
by: Perl Beginner | last post by:
I have created a GUI window using Perl Win32::XMLBuilder. This window has several buttons on it, that when a button is clicked another Perl script will execute. When the script is complete, the GUI...
1
oranoos3000
by: oranoos3000 | last post by:
hi i,m writing a script for chat room i,d like to with clicking close button of browser user is exited from site meaning of this say is with clicking close button all of session variable is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.