V
vbMark
First this runs:
[STAThread]
static void Main()
{
/////////////////////
/// Don't let app run more than one instance.
///
Process aProcess = Process.GetCurrentProcess();
string aProcName = aProcess.ProcessName;
if (Process.GetProcessesByName(aProcName).Length > 1) return;
Application.Run(new frmMain());
}
Then this runs:
public frmMain()
{
InitializeComponent();
ProcessFaxes();
Close();
}
Even after running the Close function the program stays open. I can not
figure out how to make my program close. I've tried Application.Exit()
but still no joy.
If I click the Exit button that I made the form closes fine:
Private void btnExit_Click(object sender, System.EventArgs e)
{Close();}
Please help!
Thank you.
[STAThread]
static void Main()
{
/////////////////////
/// Don't let app run more than one instance.
///
Process aProcess = Process.GetCurrentProcess();
string aProcName = aProcess.ProcessName;
if (Process.GetProcessesByName(aProcName).Length > 1) return;
Application.Run(new frmMain());
}
Then this runs:
public frmMain()
{
InitializeComponent();
ProcessFaxes();
Close();
}
Even after running the Close function the program stays open. I can not
figure out how to make my program close. I've tried Application.Exit()
but still no joy.
If I click the Exit button that I made the form closes fine:
Private void btnExit_Click(object sender, System.EventArgs e)
{Close();}
Please help!
Thank you.