初始表單位置
默認(rèn)情況下,初始表單的起始位置指定如下:
- SplashScreens顯示在屏幕中央。
- WaitForms以其父表單為中心,啟動(dòng)界面管理器嘗試自動(dòng)找到父表單。
- 通過靜態(tài)SplashScreenManager.ShowImage方法調(diào)用的Splash圖像的顯示方式與WaitForms相同。
您可以覆蓋默認(rèn)的起始位置,如下所示:
- 若要為啟動(dòng)界面(即“啟動(dòng)界面管理器”的“激活初始表單”)指定手動(dòng)開始位置(請(qǐng)參閱SplashScreenManager.ActiveSplashFormTypeInfo),請(qǐng)將SplashScreenManager.SplashFormStartPosition屬性設(shè)置為Manual,然后通過SplashScreenManager.SplashFormLocation屬性指定起點(diǎn)。
- 要為不是“啟動(dòng)界面管理器”的“激活初始表單”的初始表單指定手動(dòng)開始位置,請(qǐng)使用SplashScreenManager.ShowForm和SplashScreenManager.ShowImage方法重載提供的最后兩個(gè)參數(shù):
C# :
public static void ShowForm(Form parentForm, Type splashFormType, bool useFadeIn, bool useFadeOut, SplashFormStartPosition startPos, Point loc) public static void ShowImage(Image image, bool useFadeIn, bool useFadeOut, SplashFormStartPosition startPos, Point loc)

 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網(wǎng)安備
            50010702500608號(hào)
渝公網(wǎng)安備
            50010702500608號(hào)
             
            
 客服熱線
客服熱線