Category / Section
How to display WinForms SplashPanel at the custom location?
1 min read
Display splash panel
You can specify the custom location for the splashpanel by setting the DesktopAlignment property of the SplashPanel to the SplashAlignment.Custom. It shows the Splash panel in the specified location. The following code example displays the SplashPanel at the current mouse position.
C#
// Specifies the splash panel alignment. this.splashPanel1.DesktopAlignment = Syncfusion.Windows.Forms.Tools.SplashAlignment.Custom; // Specifies the custom location. Point pt = Control.MousePosition; // Shows the Splash panel at the specified location. this.splashPanel1.ShowSplash(pt, this, false);
VB
'Specifies the splash panel alignment. Me.splashPanel1.DesktopAlignment = Syncfusion.Windows.Forms.Tools.SplashAlignment.Custom 'Specifies the custom location. Dim pt As Point = Control.MousePosition 'Shows the Splash panel at the specified location. Me.splashPanel1.ShowSplash(pt, Me, False)
Note:
The default value of the DesktopAlignment is set as center and it sets the splash panel at the middle of the screen.
Figure 1: Splash panel in the custom location
Samples:
C#: SplashPanel_CustomLocation_C#
VB: SplashPanel_CustomLocation_VB
Reference link: https://help.syncfusion.com/windowsforms/splash-panel/display-settings