how can i Disable button fo 30 Seconds in c# : I am New in C#

i Want a button to disable for 30 second after click and enable it automatically

and i found it here but the change is not in live time

i want to get it like count down from 30 to 0 and i cant make it ? and i cant comment in the main topic cause i am new in this website Need  50 reputation



    System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
    // event handler of your button
    
    private void button1_Click(object sender, EventArgs e)  
    {                
        timer.Interval = 30000; // here time in milliseconds
        timer.Tick += timer_Tick;
        timer.Start();
        button1.Enabled = false;
    
        // place get random code here
    }
    
    void timer_Tick(object sender, System.EventArgs e)
    {
        button1.Enabled = true;
        timer.Stop();
    }

