The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Bringing winform really to front of media center

Last post 07-03-2008, 2:13 AM by General_Idea. 2 replies.
Sort Posts: Previous Next
  •  06-30-2008, 4:27 AM 7802

    Bringing winform really to front of media center

    Hi all,

    I´m trying to develop a sample application which from a media center page, clicking on a button launches a winform (integrated in the project). Trying to show, then activate, bringtofront or select  accomplishes to bring the window over MC only if it´s not on full screen. If MC is on fullscreen the window launches behind it whatever I try.
    Is there any way of minimize MC or setting my winform well above MC?

    Thanks
  •  06-30-2008, 2:48 PM 7803 in reply to 7802

    Re: Bringing winform really to front of media center

    When in full screen mode, Media Center uses DirectX "exclusive mode" for rendering to the display - because of this you can't bring a window to the front above Media Center (in fact, if I understand it correctly, technically the window behind isn't there - the "windows" part of Windows is temporarily removed from the display, and replaced with something else).

    Generally speaking, it's going to be a bad user experience to do this anyway - the Windows form isn't going to fit in with the Media Center user experience at all.   If you really need a WinForm application you could consider launching an entrypoint that runs the WinForm application from within your Media Center application, which will minimise Media Center and run your WinForm app.

    Cheers,
    Andrew

  •  07-03-2008, 2:13 AM 7836 in reply to 7803

    Re: Bringing winform really to front of media center

    Finally I managed to do this by launching the window as a separated application, minimizing the MC process, and then returning to it after the external app finishes.
    Anyway I will try the entrypoint option as it seems to be much better.

    Thanks a lot.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems