在一定时间后自动从一种形式转换为另一种形式 [英] automatically shifts from one form to another form after certain amount of time

查看:46
本文介绍了在一定时间后自动从一种形式转换为另一种形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在siverlight中使用c#开发Windows Mobile 7应用程序.在我的应用程序中,我只需要在一定时间后自动将一种形式转换为另一种形式.

hi all,
am developing windows mobile 7 application using c# in siverlight.in my application i just need to automatically shift one form to another form after certain amount time .

推荐答案

您"可能会发现此页面对于显示初始屏幕很有趣: http://msdn.microsoft.com/de-de/library/microsoft.visualbasic.applicationservices.windowsformsapplicationbase.splashscreen.aspx [
You''ll probably find this page interesting for displaying a splash screen: http://msdn.microsoft.com/de-de/library/microsoft.visualbasic.applicationservices.windowsformsapplicationbase.splashscreen.aspx[^].

Best Regards,

-MRB


使用其中一种.在计时器回调中或执行以下操作:

Use one of the times. In the timer callback or do the following:

int myDeltaX = //...
int myDeltaY = //...
//...
Dispatcher.Invoke(new Action<Window, int, int>((window, deltaX, deltaY) => {
    window.Left += deltaX;
    window.Top += deltaY;
}), this, myDeltaX, myDeltaY);



您也可以使用BeginInvoke,在这种特殊情况下差别不大.

—SA



You can also use BeginInvoke, not big difference in this particular case.

—SA


这篇关于在一定时间后自动从一种形式转换为另一种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆