How can I reset my program in C #?
I want my program to start again
on windows mobile
Thanks in advance
One way is to P / Invoke (or use an existing wrapper) around the CeRunAppAtTime API, plan your application to launch in a couple of seconds, and exit. SDF (www.opennetcf.org/sdf/) has a wrapper for this API.Peter- Application Development for MVP Pagers www.peterfoot.net | www.inthehand.com
One way is to P / Invoke (or use an existing wrapper) around the CeRunAppAtTime API, plan your application to launch in a couple of seconds, and exit. SDF (www.opennetcf.org/sdf/) has a wrapper for this API.
Peter
- Application Development for MVP Pagers www.peterfoot.net | www.inthehand.com
- (http://web.archive.org/web/20071231144636/http://www.themssforum.com/Compact/application-restart/). ( , URL- )
CeRunAppAtTime MSDN.
Zanoni, . , .
Run:
ProcessStartInfo s = new ProcessStartInfo(); s.FileName = Assembly.GetExecutingAssembly().GetName().CodeBase; s.UseShellExecute = false; Process.Start(s);
Application.Exit();
There is an Application.Restart method , but it does not look like Compact Framework support. You may try:
Application.Exit(); Application.Run(new MyForm());
Source: https://habr.com/ru/post/1711197/More articles:Disable Visual Studio Web Server Directory Browsing - cassiniHow does the Entity Framework determine whether to use the multiplicity of "one" or "zero or one" for relationships? - .netCan I programmatically add a link to a gridview? - c #new on objective-c - new-operatorTibco SOAB request over https - SSL certificate verification issue - sslSerialize an image in XAML with XamlWriter - serializationHow can I access data in a Django form field from a view? - djangoUsing generic types in Window.Resources - wpfHow do I know what a default audio device is? / dev / audio or / dev / dsp in ubuntu? - linuxDisable Python return statement from print return object - pythonAll Articles