well this is how it is. I am touching the windows application first time so sorry to all.
this is how it is.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//the process thaking long time to get answer 3 or 4 minutes and during that time
//user can't do anything. just wait for the process. The Terminate.Exit() is working it closing the application
//but if the process is in act, then the Windows Not Responding error occur .
label1.Text = DateTime.Now.ToString();
double sum = 0;
Class1 TestClass = new Class1();
sum= TestClass.GetResults();
lblResult.Text = sum.ToString("N");
}
private void close_Click(object sender, EventArgs e)
{
//when click here , then the process should stop , but window form remains there.
}
private void quite_Click(object sender, EventArgs e)
{
// when click the windows form should be abanded from the screen
}
}
}