close

Preventing Selected Applications from Closing on MAX OS X

Is there anything out there that I can use to indicate an application that shouldn't be closed if it doesn't have the built in option to warn you that you are closing the application. So you don't accidentally close an application by mistake. TIA ...

jquery, appent() doesn't closes strings?!

The append cmd doesn't close my tags, but why? What do i have to change? for (var i = 0; i<=4; i++) $("#wrapper").append('<li id=img'+i+'></li>'); always creates only <li id=img1> and so on but no </li>?! Thanks for your help! ...

DataSet Designer - Auto Add Columns

Hi, in my VB.Net application I've created a Dataset that call an existing MS SQL Server stored procedure but after the wizard close no columns where added... how can I add all the columns returned by the stored procedure without adding them manually (off course the stored procedure might change in the future) in which case manually will...

when browser closed update table and destroy session using ajax

I need to update a table when user closed the browswer window and also want to destroy session . its urgent guys ...

How can ruby provide a callback when a file is closed?

I have a method which returns an File object. I need to know when the file is getting closed. This is not as simple as overwriting the close method. The close method is not called if the file is closed by the destructor. It should work like this: def something get_lock_on_file file File.new("foobar") file.on_close { release...

Activating an application as a child/popup of another application

Hello, Under Windows XP, is it possible to execute a 3rd party application, so its main window will be a child/popup window of my VC++ MFC application? I want to control it's Z-Order like any other window in my app I don't want it be be visible in the taskbar I want to catch its WM_CLOSE and handle it in my app In general, I want my ...

ASP.Net & jQuery - closing a popup

I want to close a ShadowBox popup when the user clicks a button. The popup is showing a separate page in an Iframe. This works fine with a clients-side event on the Cancel button control, e.g. OnClientClick="javascript:parent.Shadowbox.close();" The Ok button, however, has a server-side event, because data needs to be saved. When I de...

C# close Outlook "Outbox is not empty" dialog programmatically

I have a program that sends information in the background using Outlook. I want to avoid having the user deal with the "Outbox is not empty" message that appears when a user tries to close Outlook when an email is in the outbox. because in most cases the email in the outbox will not be an email they sent themselves. I am able to get a ...

Handling with temporary file stream

Say I want to define a TempFileStream class that creates a temporary file using Path.GetTempFileName() method. A temporary file must be deleted when TempFileStream's object is no longer needed, e.g. closed or disposed: class TempFileStream: FileStream { string m_TempFileName = Path.GetTempFileName(); public TempFileStream(FileMode f...

Detecting browser closure from flex application

Hi, I need to detect browser/tab closure from within a flex application in order to delete the session information in the server. I'm familiar with JavaScript events but I was wandering if there is an event in flex for application unload or something of that sort ... ...

close a thread against a mysql database in c#

what is the proper way of closing a tread after running a query against a MySql database from a windows form in C#. is a simple open close enough like this? conn.Open(); //querycode conn.Close(): ...

ASP.NET: Connection closing after repeater databinding

Hi, I recently changed the way the connection worked on my web app and now I'm facing something that I don't understand. I hava a page that call a function called "ItemGet" in the Page_Load and it work perfectly when there is no data in the first repeater (Repeater1). When I click on a button that reload the page with different data (I...

How to override YUI Panel CLOSE button event?

I have a YAHOO Panel object defined like this: profilesDialog = new YAHOO.widget.Panel("profiles_dialog", { width: "705px", height: "609px", fixedcenter: "contained", close: true, draggable: true, zindex: 2, autofillheight: "body", visible: f...

Browser window close event

I want to capture the browser window/tab close event. I have tried the following with jQuery: jQuery(window).bind("beforeunload", function(){return confirm("Do you really want to close?") }) But it works on form submission as well, which is not what I want. I want an event that triggers only when the user closes the window. ...

What type of file deletes itself as soon as the handle is closed?

Let's say I have a Windows application that creates a file and writes data to it. The application has opened the file exclusively so no other processes can read the data in the file. If the process is killed, the file is deleted. If the process is suspended and the handle to the file is closed (using Process Explorer), the file is dele...

Close all opened xml tags

Hello, I have a file, which change it content in a short time. But I'd like to read it before it is ready. The problem is, that it is an xml-file (log). So when you read it, it could be, that not all tags are closed. I would like to know if there is a possibility to close all opened tags correctly, that there are no problems to show it...

How to close a TCP connection by port?

I would like to close an existing connection between to application running on my server. If you have a suggestion please reply on how to program this, you will be appreciated. Note that: TCPView application can close the connection exactly as I need, but I would like to run it as a console application or other command line. ...

.vimrc action onclose

Hi, is it possible to use something like an "vim-close/exit"-Event to execute some last commands before vim quits? I use this lines in my config, to let vim set my screen-title: if $TERM=='xterm-color' exe "set title titlestring=vim:%t" exe "set title t_ts=\<ESC>k t_fs=\<ESC>\\" endif but when i close vim, the title is s...

jquery: close dialog on click (anywhere)

hi, is there a default option to close a jquery dialog by clicking somewhere on the screen instead of the close icon? thx, fux ...

Does closing the application stops all active BackgroundWorkers?

Simple question, to repeat the title: Does closing the WinForms application stops all active BackgroundWorkers? (I know that many StackOverflow's threads talk about BackgroundWorker, but none I've searched gave an explicit answer)... ...