Main window buried when launched

The program launches, the menu appears at the top, but if there are any other program windows open, the main Inbox window hides behind them. I have to click on the Mail icon in the dock to bring it forward.
I know it's not a major problem, but it never did that before.
Permissions repaired and disk verified OK. Any thoughts?

I can reproduce your issue. The MainWindow gets deactivated. This happens when one windows owns a second, which in turn owns a third window and is actually not a WPF issue but a Win32 one:
http://stackoverflow.com/questions/3144004/wpf-app-loses-completely-focus-on-window-close
The easiest work around in your case is to not set the Owner property of the SettingsWindow in the settings_btn_Click event handler in MainWindow:
private void settings_btn_Click(object sender, RoutedEventArgs e)
//REMOVE THIS LINE: settings.Owner = this;
if (!settings.IsVisible)
settings.Show();
else
settings.Activate();
For all child windows to still get closed as expected when you close the MainWindow you can then set the Shutdown mode property of the application to OnMainWindowClose in your App.xaml:
<Application x:Class="InformationAlt.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml" ShutdownMode="OnMainWindowClose">
<Application.Resources>
</Application.Resources>
</Application>
Hope that helps.
Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

Similar Messages

  • Main Window display when line items are less in next page.

    Hi all,
           In the smartform,if the line items extend to second page, then to print complete main window in second page and if there are only few line items in second page, how to remove the empty spaces in the nmain window and to print other windows after the end of main window.?
    Nagesh

    design ur next page .....
    goto next page reduce the size of the main window and place the other window that u need....
    goto new window that is specified in nextpage , in condition tab check the checkbox(only at the end of main window).....
    here u will get the other windows only in the lage page....

  • Iweb: Main window failing to launch. Help?

    Hello,
    I just launched iWeb and the main working window does not load. The program is open and I can see the menu bars at the top (but of course they are all grayed out because there is no working space.) I have tried launching the domain from my Finder and it launches iWeb but I can't see anything to work with. Can someone please point me in the right direction to correct this issue? I hopefully haven't lost any of my data.
    Thanks so much!

    Juan ~ Welcome to the Support Communities. This recent thread may help:
    I don't succeed to open i-web

  • Avoiding applet main window resizing when using browser zoom?

    Hello, I haven a applet embedded into a jsp page into an APPLET tag, with a fixed height and width, same values as the JPanel has on the applet with all the elements inside of it, my problem is, that if I use the browser zoom, the JPanel respects width and height but JApplet window does not, and increases until I stop zooming the site, I'd like to avoid this, I already tried by setting these parameters on the init function on the JApplet class:
    this.setSize(593, 468);
    this.setMaximumSize(new Dimension(593,468));
    this.setMinimumSize(new Dimension(593,468));
    this.setBounds(0, 0, 593, 468);
    this.setPreferredSize(new Dimension(593,468));
    But it does not work, is there something like a this.setResizable(false) for the JApplet class? I understand that JApplet is a subclass of JFrame isn't? please, any idea would be highly appreciated, have a nice day!!

    saman0suke wrote:
    So far I have the layout as NULL,Java doesn't have a NULL. Presumably you have a null layout. Don't do that/ Learn how to use layout managers and maybe you won't have a problem with the container being resized.
    db

  • How do i get the components when a new window opens from the main window?

    In a given application, i am able to get the list of components for the main window. When an event happens in the main window, now a new window opens here how do i get the components for this newly opened window?

    getContentPane().getComponents() can be used, only if i know that new class name thats been poped up when the event happens to that main window....
    Is there anyway in runtime to know that new class name & fetch the event...

  • Smartform - Main window

    Hello,
    I need to create a smartform with the following behaviour:
    When the page shown is the last one, the main window has to take half page. On the other hand, when the page shown is not the last one, its main window has to take almost the whole page (I need a bigger main window).
    When only exists one page, the first page is also the last one.
    Thanks in advance,
    Ricard.

    Hello Oscar,
    Its Possible, as I feel.
    Just need to design 2 pages.
    PAGE1: Keep the header and item part as you want to.
    PAGE2: copy the MAIN WINDOW of PAGE1 to PAGE2.
                 Increase the size of the MAIN WINDOW in page2 .This is the flexibility that smartform gives and
                 we don't get this main window resizing facility in SAPscript it remain same in first and second
                 page.
    Navigate to : loop->table->footer.
    Create folder and under folder create window to display your footer details.
    And please unckeck the check box "On page break" in the footer condition tab.
    Hope the discussion was helpful. Revert back in case of any further issues.
    Cheers
    Suvendu
    Edited by: Suvendu Swain on Jun 9, 2009 5:06 PM

  • Safari main window not showing up in my user account when launched

    Safari main window is not showing up when launched in my user account.
    For some unknown reason, there must be a bug with Space and Safari as when I switch from Space 1 to Space 2 (and vice versa) I can see the Safari main window for less than 1 sec but could not fix it to show up and stay in the foreground in any of the 4 Spaces areas.
    I have tried to desactivate Space or change some settings in Space but could not fix the issue.
    Last but not least, Safari is working well for all other user accounts on my Mac.
    I have updgraded my OS to 10.5.7 and Safari v4 last patch but I have the same issue for 1 month

    HI and Welcome to Apple Discussions...
    Try deleting this file. com.apple.safari.plist
    /Users/YourName/Libary/Preferences. Drag that file from the Preferences folder to the Trash, empty the Trash and restart your Mac. See if that helps...
    Carolyn

  • The main window doesn't show up anymore when I launch iPhoto.

    The problem occurs on an iMac / Mavericks 10.9 / iPhoto 9.5. In the last days, iPhoto used to crash several times, and now the main window doesn't open when I lauch the app. Fortunately, if I want to access from the menu another Library, it works, So that I can repeat the procedure and access, by doing so, the default Library that doesn't open. There must be a corrupted file somewhere, I presume. But now, what to do? With Time Machine I could get iPhoto from a time it worked well. But this didn't change anything. Thanks for an advice to solve this annoying problem.

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • Error when launching j2ee (j2sdkee1.3.1)  in Windows XP Professional

    Hi!
    I use j2sdk1.4.2_03 on Windows XP Professional and I just installed j2sdkee1.3.1.
    (I do have assigned environment variables J2EE_HOME, JAVA_HOME and PATH accordingly)
    When launching > j2ee -verbose I do get the following error:
    Could anyone give me some hints about this problem?
    It would be much appreciated.
    ~~maite
    C:\>j2ee -verbose
    J2EE server listen port: 1050
    Naming service started:1050
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:176)
    at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
    at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:641)
    at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:583)
    at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1007)
    at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:690)
    at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1088)
    at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981)
    at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)
    at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:37)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.rmi.RemoteException
    at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContext
    Provider(SerialContextProviderImpl.java:46)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972) java.rmi.RemoteException
    at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:46)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    Error executing J2EE server ...
    ------------------------------------------------------------------------------------------------------------------------

    Sorry, I just learned from another message in the forum that it was a firewall problem. It is working now.

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • When I open a separate window and start private browsing my main window closes and I lose all of my app tabs

    whenever I open a new window and do private browsing it closes my main window and I loose all of my app tabs. If this is functioning as designed then it is a flaw in the design.

    It is designed that way. When you stop private browsing, all of your other tabs will come back.

  • Stopping the applications main window from activating when a child window is clicked

    I am building a javascript based AIR application that implements a bastardized growl notifier.  When the the application is minimized or in the background you may be notified of a new message.  This part works great.
    The UI calls for an "X" button to close the the notification window.  When I click the "X" the application's main window is activated and brought to the foreground, but the desired behavior is that the main application window stays minimized or backgrounded.  I've tried playing around with preventDefault and stopPropagation on mouse click and mouse down events but this doesn't seem to solve the problem.  I've also tried to hook into the display state changing event on the nativeWindow to see if I could cancel activation events in this scenario but I wasn't able to get that to work.  My last ditch effort was to try and tap into the AIR platform events for mouse click and mouse down, with the rationale that these things are handled in AIR and by the time it gets to the webkit engine, it's already too late, but that didn't seem to work either.
    It's completely possible that I'm "missing some mundane detail" and one of these approaches should be sufficient.  I've noticed that TweetDeck has the same problem so I'm wondering, is this just an "AIR thing", possibly a bug, or is this expected?
    Any help would be greatly appreciated.  I can post more information and screenshots if my explanation wasn't clear enough.  Thanks for reading.

    sloppy code
    JMenuitem open;
    public actionperformed(event e)
    if e.getsource == open
    displayframe();
    public void displayFrame(){
    JFrame = new jframe
    frame.pack()
    frame.show()
    }

  • Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to

    Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to do anything the following message comes up: - An error occrred when attempting to change modules.  What do i need to do to fix this?

    Masher please use the uninstaller located in the Applications/Utilities/Adobe Installers folder.  Once Photoshop Lightroom is removed then please download Lightroom 5.5 from Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.5 and reinstall.

  • Main window animation to fly in when clicked on different menu buttons

    For a flash website I'm creating, I want my main window box with all the information containing it to fly in when a menu button is clicked.
    I can't figure out the actionscript to do that.
    It's the same thing as this website's main window:
    http://www.flash-templates-today.com/free-flash-templates/27/

    thanks for the tips!
    did you know of any links or templates that would have the actionscript for that already done that i could base mine off of?
    I'm not sure how I would make the movieclip tween when I clicked on a menu button and have the text in it change as well.

  • Transaction launcher window closes when ending interaction

    Hi,
    I have created a launch transaction which is launched from a logical link in the navigation bar. The launch transaction is opened in a new window. When the agent presses the End button in Interaction Center, there is a pop-up saying that "there are active launch transactions, would you like to close them automatically?". If chosing OK, the launch transaction window closes, if chosing cancel the interaction is not ended and the launch transaction window is still open.
    Is there a way to end the interaction without closing the launch transaction window?
    Best Regards
    Krister

    Just in case someone will need to implement something similar overriding the standard functionality
    I did it with an enhancement (CL_CRM_IC_ACTIVE_ACTIONS):
    method if_crm_ic_prepare_for_callback~execute .
    ENHANCEMENT 1  ZENH_IC_PREPARE_FOR_CALLBACK.   
    FIELD-SYMBOLS: type ict_active_ltx. 
    DATA: lv1_dumy_request type ref to if_http_request.   
    READ TABLE gt_active_ltx assigning with key ltx_id = '<TRANSACTION_LAUNCHER_ID>'.    
    IF sy-subrc = 0.     
    TRY.
    <lfs_active>-ltxhandler->process_return( lv1_dumy_request ).     
    CATCH cx_root.     
    ENDTRY.     
    DELETE gt_active_ltx WHERE guid =-guid.   
    ENDIF.
    ENDENHANCEMENT.
    Regards,
    Mihai

Maybe you are looking for

  • Accounting document not getting reversed.

    hi guru It is with our purchase Order number 112589 set up against and Asset under construction 36985(Not yet settled). The story I have been given is that this purchase order originally created for a value usd88. The full amount was GRNed and an inv

  • How to use single button for different operations

    Hi I am using one button with image having 4 controls like left right up and down... How to use the single button for 4 different operations?? Is there any way of defining hotspots on single button to do four different operations... Please have a loo

  • Append two structures in an internal table.

    hi,      if i join two tables by innerjoining will it effect the performance?If such,how i can join these with better performance?can i get the data from different tables in a single internal table by appending different structures in this case?Pleas

  • Still pictures enlarging themselves

    Okay, I've done pretty well getting to know PrPro. I've got my first one minute video just about done...however, several of the still pictures I've included in the video are blowing themselves up. They look perfectly fine in the source monitor, but w

  • Trigger an action after Material Save

    Hello , I have a requirement where I need to trigger an action ( A custom method)after saving a material thru MM01/MM02. I looked for User exits and BADIs in these transaction but none of them seem to be helpful. Can anyone suggest me an user exit/BA