翻譯|使用教程|編輯:龔雪|2021-04-15 10:14:46.037|閱讀 229 次
概述:DevExpress SplashScreenManager組件的序列化取決于所選的Active Splash Form(SplashScreenManager.ActiveSplashFormTypeInfo屬性),歡迎下載最新版DevExpress體驗!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
組件的序列化取決于所選的Active Splash Form(屬性)。
類的實例在主窗體的InitializeComponent方法中聲明為局部變量,這種序列化方法可確保在所有其他組件之前初始化啟動畫面管理器,并在您的表單開始的第一刻啟動選定的啟動畫面。 但是請注意,您將無法處理在InitializeComponent方法中聲明SplashScreenManager組件的本地實例。
這里是在這種情況下可以使用的方法。
C#
// Display a Wait Form SplashScreenManager.ShowForm(typeof(WaitForm2)); //... //Change its caption SplashScreenManager.Default.SetWaitFormCaption("new caption"); //... //Close the Wait Form SplashScreenManager.CloseForm();
VB.NET
' Display a Wait Form SplashScreenManager.ShowForm(GetType(WaitForm2)) '... 'Change its caption SplashScreenManager.Default.SetWaitFormCaption("new caption") '... 'Close the Wait Form SplashScreenManager.CloseForm()
SplashScreenManager類的實例被聲明為表單的局部變量,而不是InitializeComponent方法。 在這種情況下,您可以使用SplashScreenManager的非靜態方法(可通過SplashScreenManager實例訪問)打開,關閉所選的等待表單并與之交互。 這些方法是:, , , and 。
DevExpress技術交流群3:700924826 歡迎一起進群討論
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網