SORU
22 NİSAN 2009, ÇARŞAMBA


Nasıl# WinForm C başvurum yeniden muyum?

Gelişmekte olan bir C# .NET 2.0 WinForm Uygulama. Uygulama ve kendini kapatıp tekrar açmanız.

Application.Restart();

Yukarıdaki yöntem proven to be unreliable vardır.

Uygulamayı yeniden başlatmak için daha iyi bir yolu nedir?

CEVAP
17 EYLÜL 2010, Cuma


Eğer ana uygulama varsa form kullanmayı deneyin

System.Diagnostics.Process.Start( Application.ExecutablePath); // to start new instance of application
this.Close(); //to turn off current app

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Amazon Web Services

    Amazon Web S

    8 NİSAN 2009
  • Feel The Electricity!

    Feel The Ele

    20 ŞUBAT 2010
  • Fullscreen

    Fullscreen

    23 Mart 2006