Articles in this section
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.

 

 

Show the splash panel in custom location

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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied