DevExpress WinForms帮助文档:表单和用户控件 - 初始屏幕管理器序列化细节

点击获取DevExpress完整版下载

SplashScreenManager 组件的序列化取决于所选的Active Splash Form(SplashScreenManager.ActiveSplashFormTypeInfo属性)。

激活启动表单是Splash Screen或None

SplashScreenManager类的实例在主窗体的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实例访问)打开,关闭所选的等待表单并与之交互。 这些方法是:SplashScreenManager.ShowWaitFormSplashScreenManager.CloseWaitFormSplashScreenManager.SetWaitFormCaptionSplashScreenManager.SetWaitFormDescription and SplashScreenManager.SendCommand


上DevExpress中文网,获取第一手最新产品资讯!

DevExpress技术交流群3:700924826      欢迎一起进群讨论

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值