Splash Screen sort of working

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 7
Joined: Wed May 08, 2013 1:23 pm

Splash Screen sort of working

Post by brianclark »

I have read through the instructions on the "Show-SplashScreen", and in my application the Splash screen works. However, after I build the app and run it from a .exe the splash screen comes up, however there is no image. Is it due to me putting my images in a folder within the directory?

Code: Select all

	$paramShowSplashScreen = @{
		ImageLocation = Join-Path -Path (Get-ScriptDirectory) -ChildPath '\Images\Loading.png'
		Title		  = 'Loading Data ...'
		PassThru	  = $false
	Show-SplashScreen @paramShowSplashScreen
I must be missing something, or what I need to do to embed the image in the application. Any guidance would be appreciated.
One other question, can I use a gif instead of an image?