EXIT_ON_CLOSE for one window

Hi,
I'm creating a program which has a menu with a menuItem that says "Settings". If I click on the menuItem a new window opens where you are supposed to be able to make a couple of settings for the program. All that stuff works just fine but there is one thing that doesn't. When I close the settings window, the entire program shuts down. How do I get the program to close the settings window only?
Thanks a lot!
Karl-Johan

Don't use EXIT_ON_CLOSE.
Read the API. You will find other values that you can use for the default close operation method.

Similar Messages

  • My session has dissapeared, save for one window. How do i recover it?

    A few days ago, i had a session of 4 windows (with several tabs) saved in Firefox so they would open up again when i next opened Firefox. They have worked fine for the past month, but today i only got one window back when i opened up Firefox. This has never happened before. How do i recover my lost session windows?

    If you do not see those closed windows in "History > Recently Closed Windows" then the tabs from those windows are gone.<br />
    If you use the close X on the title bar to close a window then only the last closed window will be restored.<br />
    You need to use "File > Exit Firefox" to close all window to prevent losing windows in case you close the main window and others are still open.

  • FF will not start for ONE Windows 7 User. All others work fine.

    I try to start FF and it hangs. Loads into Project Manager, but no browser window.

    So then I need to amend the title to "firefox.exe -P works on all Windows USERS except one.
    Can I adjust the profile for User A from a Windows logon for User B?
    type into the Run dialog "firefox.exe -P" and the system just stares at me...no UI, no GUI, no dialog, nothing.
    and yes, I have uninstalled, uninstalled deleting profiles, started in safe mode, and uninstalled and removed all FF references from Regedit.
    I've done everything short of a rollback to ver 2.0

  • Can no longer open a new tab for one window browsing

    I used to be able to open a new tab without having to open a new firefox window. I can no longer do this. My Firefox version is:
    3.6.73

    Start Firefox in [[Safe Mode]] to check if one of the add-ons (Ask.com toolbar) is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when i enter account name and password for one account, i cannot access other accounts, because windows saves username

    Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when I enter account name and password for one account, i cannot access other accounts, because windows saves username. how can i prevent this from happenning. I really need to access all my accounts and dont want it to save automaticlly.

    Why have 5 accounts if you need to access all of them.. just have one account?
    Sorry I cannot follow why you would even use the PC to control the Time Capsule. Apple have not kept the Windows version of the utility up to date.. so they keep making it harder and harder to run windows with apple routers.

  • HP LaserJet 4300 prints gibberish for one user, but prints OK for all others on a Windows 7 32-bit

    HP LaserJet 4300 printer installed via LPT1 using Universal Print Driver v5.2.6.9321 on an HP 8100 desktop running Windows 7 Enterprise SP1 32-bit.
    For one particular user, this printer prints gibberish no matter what type of document she attempts to print.
    Not sure when the problem began, the user uses a network printer to work around this issue. She can print to any of the other HP printers on our network OK, including another 4300 down the hall.
    Anyone else can log on and print the same documents OK on this desktop using this printer.
    Have tried rebooting the HP 8100 and power cycled off/on the 4300. Also uninstalled and re-installed the 4300.
    I have updated the firmware on this 4300.
    Changing the print processor in the printer properties did not help either.
    Virus and malware scans have not detected any issues.
    Any advice for this issue would be greatly appreciated.
    This question was solved.
    View Solution.

    Hi MDOTd5-247,
    The product you have is a commercial printer. I suggest posting in the forum for HP Business Support for a better chance at finding a solution.
    Here is the link to the Commercial Laserjet board:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    If I have helped in any way, just click the Kudos star on the left. Also, if your issue has been resolved, don't forget to select Accept as Solution

  • Crashes when running applications from network share - "Windows cannot access the file for one of the following reasons"

    Hi,
    starting a couple of weeks ago, we get the following error(s) when running applications from a network share. We don't know what causes this, we are not aware of any major changes in our network infrastructure or client/Server configuration. We did upgrade
    a lot of machines to Windows 8, but the issue also occurs on older Win7 computers.
    We figured out a workaround though: The applications run fine when launching from a FQDN share (like
    \\share.domain.Company.com) and only cause problems when running from
    \\share directly. They have worked fine for years without FQDN though.
    Any ideas?
    Error Details (the Kind of error differs greatly):
    # 1 #
    Log Name: Application
    Source: Application Error
    Date: ...
    Event ID: 1005
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: vmDEV
    Description:
    Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program XYZ
    because of this error.
    Program: XYZ
    File:
    The error value is listed in the Additional Data section.
    User Action
    1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
    2. If the file still cannot be accessed and
    - It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
    - It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
    3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
    4. If the problem persists, restore the file from a backup copy.
    5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.
    Additional data
    Error value: C000020C [ also seen with code C00000C4]
    #2 (German error Messages from now on, we only use German OSes, the above english one is translated based on similar error Messages I found on the web) #
    Name der fehlerhaften Anwendung: XYZ.exe, Version: 2015.0.496.5054, Zeitstempel: 0x54ea67c3
    Name des fehlerhaften Moduls: clr.dll, Version: 4.0.30319.34014, Zeitstempel: 0x52e0b784
    Ausnahmecode: 0xc0000006
    Fehleroffset: 0x00026549
    ID des fehlerhaften Prozesses: 0x13ac
    Startzeit der fehlerhaften Anwendung: 0x01d055a854d36445
    Pfad der fehlerhaften Anwendung: \\share\application.exe
    Pfad des fehlerhaften Moduls: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Berichtskennung: 949ea933-c19b-11e4-bf04-78542e186754
    Vollständiger Name des fehlerhaften Pakets:
    Anwendungs-ID, die relativ zum fehlerhaften Paket ist:
    Anwendung: XYZ.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: Ausnahmecode c0000006, Ausnahmeadresse 720B6549
    Stapel:
    # 3 #
    Anwendung: WpfApp.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.Runtime.InteropServices.SEHException
    Stapel:
       bei SP.Forms.AutoCompleteSelectionBase.OnEnter(System.EventArgs)
       bei System.Windows.Forms.Control.NotifyEnter()
       bei System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    # 4 #
    Anwendung: WpfApp.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.Runtime.InteropServices.SEHException
    Stapel:
       bei System.IO.UnmanagedMemoryStream.ReadByte()
       bei System.IO.BinaryReader.ReadByte()
       bei System.IO.BinaryReader.Read7BitEncodedInt()
       bei System.Resources.ResourceReader._LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
       bei System.Resources.ResourceReader.LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
       bei System.Resources.ResourceReader.LoadObject(Int32, System.Resources.ResourceTypeCode ByRef)
       bei System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean, Boolean)
       bei System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean)
       bei System.Resources.ResourceManager.GetObject(System.String, System.Globalization.CultureInfo, Boolean)
       bei System.Resources.ResourceManager.GetStream(System.String, System.Globalization.CultureInfo)
    # 5 #
    Anwendung: WpfApp.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.Runtime.InteropServices.SEHException
    Stapel:
       bei System.Reflection.RuntimeParameterInfo.get_Name()
       bei System.Diagnostics.StackTrace.ToString(TraceFormat)
       bei System.Environment.GetStackTrace(System.Exception, Boolean)
       bei System.Exception.GetStackTrace(Boolean)
       bei System.Exception.ToString(Boolean, Boolean)
       bei System.Exception.ToString(Boolean, Boolean)
       bei System.Exception.ToString(Boolean, Boolean)
       bei System.Exception.ToString()
    # 6 #
    Name der fehlerhaften Anwendung: XYZ.exe, Version: 2015.0.496.5054, Zeitstempel: 0x54ea834f
    Name des fehlerhaften Moduls: KERNELBASE.dll, Version: 6.3.9600.17278, Zeitstempel: 0x53eeb460
    Ausnahmecode: 0xe0434352
    Fehleroffset: 0x00012f71
    ID des fehlerhaften Prozesses: 0xa68
    Startzeit der fehlerhaften Anwendung: 0x01d0559cb7ec4ed6
    Pfad der fehlerhaften Anwendung: \\share\XYZ.exe
    Pfad des fehlerhaften Moduls: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
    Berichtskennung: 010514d0-c190-11e4-bf04-78542e186754
    Vollständiger Name des fehlerhaften Pakets:
    Anwendungs-ID, die relativ zum fehlerhaften Paket ist:
    # 7 #
    Name der fehlerhaften Anwendung: XYZ.exe, Version: 2015.0.496.5054, Zeitstempel: 0x54ea7a6e
    Name des fehlerhaften Moduls: ntdll.dll, Version: 6.3.9600.17630, Zeitstempel: 0x54b0d74f
    Ausnahmecode: 0xc0000006
    Fehleroffset: 0x0006db27
    ID des fehlerhaften Prozesses: 0x18dc
    Startzeit der fehlerhaften Anwendung: 0x01d0559cb08529c3
    Pfad der fehlerhaften Anwendung: \\share\xyz.exe
    Pfad des fehlerhaften Moduls: C:\WINDOWS\SYSTEM32\ntdll.dll
    Berichtskennung: ef389186-c18f-11e4-bf04-78542e186754
    Vollständiger Name des fehlerhaften Pakets:
    Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

    Hi,
    >>The applications run fine when launching from a FQDN share
    It sounds like a DNS suffix issue. When this issue occurs, please try to ping share on the client, then check if the corresponding IP address is correct. If the IP address is wrong, please adjust your settings of DNS to make sure that the client can resolve
    the share correctly.
    If it's very hard to change the settings of the DNS for some reason, as a work around, we can add the entry into the clients' hosts file.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • When I try to open live hot mail I get this message:The Windows Live Network is unavailable from this site for one of the following reasons:

    When I try to open live hot mail I get this message: The Windows Live Network is unavailable from this site for one of the following reasons:
    * This site may be experiencing a problem
    * The site may not be a member of the Windows Live Network
    You can:
    * You can sign in or sign up at other sites on the Windows Live Network, or try again later at this site.
    However, when I open hot mail in IE it opens just fine. Tried changing the password as suggested but it did not help in Firefox.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • Is there a way to have two different iTunes for two different iPhones on one Windows User account?

    Using Windows 7, iphone 4.
    I've read as many threads on these forums and as many kb's as I could find, but I sttill can't figure it out. I have 2 iPhones. Let's call them, "wife" and "hubby". I want to have two separate iTunes, one for each of the phones. Hubby is the Windoows User. I don't want to set up a different Windows User for wife.
    Hubby was the original iPhone. When I plug it in, iTunes recognized it has Hubby's iPhone. Then I unplug Hubby and close iTunes. I plug in Wife but iTunes stll comes up with Hubby under Devices and syncs Hubby's iTunes to Wife's iphone.
    I've tried using the shift key when I open iTunes to set up two separate .itl files to no avail.
    Is there a way to have two different iTunes for two different iPhones on one Windows User account?
    Thanks!

    What happens if you rename the iPhone "Wife" when it shows up as "Hubby", then choose a different set of apps/playlists to sync with? iTunes is supposed to be able to manage multiple devices, each with their own selection of content. Perhaps you "restored" "Wife" with a backup from "Hubby" when you first set things up which is now causing confusion.
    To create a new library press and hold down the shift key as you click the icon to start iTunes and keep holding shift until asked to choose or create a library. You need to use the same technique to switch back.
    tt2

  • Synaptics touchpad on HP Mini 110 Windows 7 32 Bit - not working for one user - working for another

    Hi,
    I recently have an issue with Synaptics touchpad on HP Mini 110 Windows 7 32 Bit - NOT working for one user - working for another.
    Windows 7 updates recently installed ???
    By checking the device properties on the user that works - "Synaptics PS/2 Port Touchpad 13/10/2011 Version 15.3.29.0"
    When the other user logs on, the touchpad works for a few seconds, then a displays a black square with a red diagonal line through it, then the touchpad won't respond. Trying to use the keypad to navigate to system diagnosics or anything to find further info is useless....

    Hey eagle_no11,
    Thank you for joining the HP Support Community!
    I will do my best in assisting to hopefully get the TouchPad to work on the second user profile.
    What I would like to start off with, is to restore the original Synaptics drivers onto the profile that is not working correctly. I have included the document Using Recovery Manager to Restore Software and Drivers (Windows 7).
    Once you have installed the original drivers, you will need to complete all updates from both HP, as well as Windows. For these updates, if you open the HP Support Assistant, and select Maintain, you should see an option for updating.
    Please let me know how these steps do work out for you.
    Have a great day!
    I worked on behalf of HP

  • MAC OS Yosemite - CS6 - A while back, i did something to where when i open a file in photoshop, it no longer is one window, now it's two separete ones. one for the program itself, and another for the actual file how do it get it back to where it's all one

    - A while back, i did something to where when i open a file in photoshop, it no longer is one window, now it's two separete ones. one for the program itself, and another for the actual file how do it get it back to where it's all one window without having to be in full screen mode? I've managed to go some time like this, but right now it's just really annoying me. HELP!!!

    Just drag the small window to the top right below the toolbar, you'll see the area highlighted and when you drop it the file should dock.

  • Change view options for only one window

    Usually I prefer to view my windows as icons, but I like certain specific windows to show up in list mode. On 10.4, in the View Options, there was an option for "This window only" but that seems to be missing in 10.5. Am I just blind???

    I agree. i enjoyed that feature in 10.4. It drives me nuts that if I want to change the view options for one folder because of the way I want to view its specific contents, the rest of folders on my system changes at the same time. I would appreciate it if each folder had a "memory" of its own view option settings.
    However, I acknowledge that sometimes you would want to change a setting that affect all windows. But it shouldn't overwrite the remainder of the settings. If, for example, you wanted to change the text size of every icon in every window, but leave everything else as set in each individual folder, there should be an option for this!

  • HT1386 After syncing with itunes(windows), messages for one of the contact(I have saved the contact name as 'Unknown') are lost. I can see only few messages which fits to the screen. I don't see option to load earlier messages.

    After syncing with itunes(windows), messages for one of the contact(I have saved the contact name as 'Unknown') are lost. I can see only few messages which fits to the screen. I don't see option to load earlier messages.
    Can anyone help.

    Can anyone help on this?

  • One button for Firefox window on the Task Bar instead of many

    I want to see just one button in the Task bar of my computer for Firefox window and not multiple, each window for each open tab. How can I do that?

    There is a setting for whether to inform Windows about each individual tab or only the active tab in each separate window. Here's where you can check and adjust that:
    "3-bar" menu button (or Tools menu) > Options > Tabs panel
    It's the last item: "Show tab previews in the Windows taskbar". If that is checked, you get ALL tabs in ALL windows on the Taskbar, and if it's unchecked, you only get the active tab in each window.
    Is that what you're looking for?

  • Preview -- two windows for one file?

    Hi,
    I'm stumped by an amazingly simple problem: I want to have two or three Preview.app windows open (at different positions of) the same .pdf file, but I can't find any possibility short of duplicating the file, once for every window!
    Where's the magic button I've missed so far?
    Thanks, Colin

    Hi, Cohi.
    Adobe Acrobat (not the free Adobe Reader) has a function (WIndow > Split) that enables you to have two independent views of the same document.
    Unfortunately, preview does not support this with PDFs. AFAIK, your workaround is one answer with Preview. Your only other option is to make copies of the Preview app (e.g. Preview 1, Preview 2) and open the same document in these different copies of Preview.
    While Preview has evolved with each release, if one works heavily with PDFs, then one should buy Acrobat.
    If you think Apple should add a Spilt view function in some future version of Preview, I suggest you submit a Mac OS X Feedback.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

Maybe you are looking for

  • Tables where the XI Data is stored

    Dear all, Can you let me know all the tables in XI in which the data is stored. Like where the asyncronous messages are stored(which table and what is the abap program name which gets executed to store the message id's etc in the table). Pl list out

  • Help with HardwareTest error code -  2GMC/3/13 :Built-In

    hello, I have an IMac 20" 2.0ghz G5 PPC I'm not sure if it qualifies for the repair programme, my mac has an EMC number 2056 and often freezes when waking up or trying to goto sleep. hardware test in normal mode runs through ok but in extended mode a

  • Time String to Timestamp Conversion Problem

    Hi, I attempted to convert time string to timestamp but I failed. What is the wrong with it? I need a timestamp to create waveforms. Egemen Solved! Go to Solution. Attachments: Time String to Timestamp.png ‏18 KB

  • Trouble converting a math statistic document

    Have trouble converting a scanned math statistics document. I am unable to turn off the OCR on my scanner an help

  • SQL Server ODBC drivers for Solaris

    I am looking for an ODBC driver to let a Solaris box talk to a SQL Server 2012 db, I am hoping that someone will be able to put me in the right direction. Thanks, CB