|
I have three JFrames, i want to close one of them without influence to another. what can i do to get it ?
thanks Peter. I want to open two(or more) JFrames at the same time, and When I close one of them(use the default close button), others is still open...
Started by Keating on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
EDIT :
If I understand your edited question, then your application terminates when you close(JFrame.DISPOSE_ON_CLOSE); on your JFrame when initializing, not setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
DISPOSE_ON_CLOSE will....
|
|
How can I close a browser window without receiving the "Do you want to close this window" prompt"?
The prompt occurs when I use the window.close(); command.
Derek
Started by Derek on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Closing Page:
<script type="text/javascript">.
My friend into letting you close the browser on this page.
Window.open('foo.html');.
To close a window that wasn't opened with JavaScript, i.e.
|
|
How to close any application even if task manager unable to close
Task Manager > Process TAB > image name > right click > end process
Started by Jitendra vyas on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
If you're interested in other....
Worth a shot though before reaching for the third party tools .
You could try giving the taskkill command a shot:
taskkill /f /im program_name.exe
Although I believe it uses the same method to kill processes as Task Manager .
|
Ask your Facebook Friends
|
In my web application a lot of popups opened from the parent window using 'window.open'. So I want to close all those popups when my application's main window is closed. How can I do that?
Started by Sauron on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To know that the user closes the window but assuming you do achieve that (by a close button or subscribing to the beforeUnload event) you can close the opened windows by following the next bullets, execute the close method....
|
|
I have a C# winform application that during its work opens another Winform process. The other process has UI of its own. When I close the parent application, I want the other application to be closed automatically.
How can I achieve that?
Thanks
Started by Ragoler on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
MyProcess.CloseMainWindow would be to send the standard WM_CLOSE method, which would mean you would just have to unload a method that will close all started ....
:
// Close process by sending a close message to its main window.
|
|
I have an application that uses simple sockets to pass some characters between two systems. I have my java application running as a server. I establish a connection fine, and even pass one message. However, after one message has been sent my connection...
Started by windfinder on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
As @Eddie said (seconds before me! :) ), closing the writer ....
Don't close it until you are ready to close the underlying socket.
Yes, closing any Writer/Reader will close all other Writers and Readers that they wrap.
|
|
Hi,
I have a winforms application, that why someone clicks on a button I need to open up IE to a specific URL.
When someone closes the winforms app, I then need to close IE.
Is this possible? If yes, how?
Started by AnonymousAnonymous on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
EDIT:
Code to close a window handle is ....
That way when you close the website you have handle that was created), you can kill the process (or close the window) when you app exits.
Into your application using the WebBrowser control.
|
|
In Unix C programming, is it considered good practice to explicitly close file handles before the process exits, or is it instead good practice to let the OS close the file handles and thus avoid unnecessary code?
Which of the two would generally be considered...
Started by Erik Öjebo on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
close()ing a socket will flush it, for example, and if this fails you....
Then again, it depends on the file descriptor type.
It's very good practice to close the descriptor if your program will go on but the descriptor isn't required anymore.
|
|
Hi ,
Can somebody tell me how can I close/kill the session when user closes the browser. I am using stateserver mode for my asp.net web app. onbeforeunload method is not proper as it fires when user refresh the page.
Started by Punit on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can.
Still, there are some ways to achieve close to this behavior.
A timeout - you can try and reduce the timeout in order to close inactive sessions faster the server know when it closes.
|
|
I have a form which is displayed through: ShowDialog() . The form doesn't have CancelButton specified.
When I open a BrowseDialog from the form and then close the BrowseDialog , the form is also closed. How can I prevent this from happening?
When the ...
Started by MysticEarth on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
From your browser dialog, do a check on the sender arg to see which dialog is requesting the close.
|