T
Tony Johansson
Hello!
My start form that is run from Program ccaled StartApp has two buttons
called Stock and Cash.
Yoe can see the event handler for Stock and Cash below.
If I click on Stock button then form Stock is displayed and if I click on
Cash button
then Cash form is displayed. So far so good.
Now to my little problem if I for example click on Stock button four times
then four Stock
forms will be displayed.
So I don't want to be able to start several Stock forms or Cash forms how is
that done.
If I need to start the Cash form I will have to close the Stock form how is
done done.
private void BtnStock_Click(object sender, EventArgs e)
{
new Stock().Show();
}
private void BtnCash_Click(object sender, EventArgs e)
{
new Cash().Show();
}
//Tony
My start form that is run from Program ccaled StartApp has two buttons
called Stock and Cash.
Yoe can see the event handler for Stock and Cash below.
If I click on Stock button then form Stock is displayed and if I click on
Cash button
then Cash form is displayed. So far so good.
Now to my little problem if I for example click on Stock button four times
then four Stock
forms will be displayed.
So I don't want to be able to start several Stock forms or Cash forms how is
that done.
If I need to start the Cash form I will have to close the Stock form how is
done done.
private void BtnStock_Click(object sender, EventArgs e)
{
new Stock().Show();
}
private void BtnCash_Click(object sender, EventArgs e)
{
new Cash().Show();
}
//Tony