Click here to Skip to main content
16,004,778 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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 .
Posted
Comments
Manfred Rudolf Bihy 9-May-11 4:23am    
Your requirement does not sound convincing. Why would any user want that the form he is entering data into is switched to another form. I absolutely abhor when programs do stuff like that.
Pleas feel free to explain why you would want to do this.
Saranya Natesan 9-May-11 5:10am    
i thought am precise in my question ,think so you need full explanation.my first form contains only
picture of my application,which means when my application run it show sum picture of my application and certain time it should switch to next form where my actual login of my application starts up.
Manfred Rudolf Bihy 9-May-11 7:01am    
What you call a form has a name in the real world. The feature you are seeking is a so called splash screen.

Besides that: Being precise is definitely not one of your strong points. You didn't even pose a question. Please do better next time.


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
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 9-May-11 10:38am    
Manfred, my German is not good enough to read this document :-) I'm sure if you can change the link into same thing written in English it will be better for must other readers as well... :-)
--SA
Sergey Alexandrovich Kryukov 9-May-11 10:49am    
By the way, the simple answer is using timer with Dispatcher.Invoke/BeginInvoke, which is not the most trivial.
Please see my solution.
--SA
Espen Harlinn 9-May-11 16:37pm    
Nice link, (automagic translation from german to english saves the day :) ) - 5ed!
Use one of the times. In the timer callback or do the following:

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


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

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900