I try to create a SplashScreen with an image from another project:
SplashScreen s = new SplashScreen("/MyAssembly;component/myImage.png");
Using this resource address works for regular images, but I can’t create the SplashScreen:
Cannot locate resource ‘/MyAssembly;component/myImage.png’.
Any ideas?
Use the splashscreen’s overloaded constructor:
SplashScreen s = new SplashScreen(assembly, "myImage.png");assemblycan be acquired asvar assembly = Assembly.Load("MyAssembly")(where"MyAssembly"is the full name of your assembly).