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.
This topic is 3 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
brianclark
Posts: 23
Last visit: Wed Feb 22, 2023 5:19 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?
thanks,
Brian
This topic is 3 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked