Search code examples
c#monogame

Creating a borderless/topmost/transparent splash window in Monogame?


I'm trying to create a splash window like many applications and games use. The effect I'm trying to create looks like this: FL Studio Splash Window

Essentially, I want to create a borderless, transparent window in Monogame and draw a texture over it. I also need the window to show on the topmost layer of windows on the screen (optional, but preferred).

How can I create that transparent window?

Thanks!


Solution

  • Since Monogame is used for cross-platform projects, I don't know if Monogame has a built-in the splashscreen class or function.

    The method you're asking sound like you wish it to work on windows platform.

    You can achieve it on windows in 2 ways:

    1. Using WPF, you can use Splash Screen

    2. Using Windows Forms Create a border-less window and show it. See How to build splash screen in windows forms application? and change the Form.TransparencyKey to the color which you want it to be shown as transparent.