static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
bool owned;
Mutex mutex = new Mutex(true, Application.ProductName +
"manifest", out owned);
if (owned)
{
if (ThemeManifest.Create())//Create XP Theme
{
Process process =
System.Diagnostics.Process.Start(Application.Execu tablePath);
process.WaitForInputIdle();
Application.Exit();
}
else
{
Run();
}
mutex.ReleaseMutex();
}
else
{
Run();
}
}
private static void Run()
{
bool owned;
Mutex mutex = new Mutex(true, Application.ProductName +
"single", out owned);
if (owned)
{
Application.Run(new MainForm());
mutex.ReleaseMutex();
}
}
}
On Dec 24, 3:17 am, "ad" <fly...@wfes.tcc.edu.twwrote:
I used vs2005 to develop a winform project.
How can I make my project as a single executable file?