Is it possible to show a wait message while a semaphore is locked in C#?
<p>I'm currently making a program to simulate a set of ATMs in visual C#. It's supposed to stop somebody accessing their account if it has already been accessed from a different location. Is it possible to show a message that the account has already been accessed while a semaphore is waiting? </p>

<p>Here is the part of the code where the semaphore is used:</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
        {
            count++;
            if (count == 1)
            {
                account = findAccount();
                if (findAccount() != 5)
                {
                    textBox1.Text = "Please Enter Your Pin";

                }
                else
                {
                    textBox1.Text = "Please Enter Your Account Number";
                    count = 0;
                }
                textBox2.Clear();
            }
            if (count == 2)
            {
                if (findPin(account) == true)
                {
                    semaphore.WaitOne();
                    textBox1.Text = "1: Take Out Cash \r\n2: Balance \r\n3: Exit";
                }
                else
                {
                    semaphore.Release();
                    textBox1.Text = "Please Enter Your Account Number";
                    count = 0;
                }
                textBox2.Clear();
            }
            if (count == 3)
            {
                atm();
            }
            if (count == 4)
            {
                withdraw();
            }
            if (count == 5)
            {
                int value = Convert.ToInt32(textBox2.Text);
                customWithdrawl(value);
            }

        }
</code></pre>
