How can i disable a button after i click it and shows another form, and enable it after i close the form that was opened.
Please, i need help.
Thank you in advance.
How can i disable a button after i click it and shows another form, and enable it after i close the form that was opened.
Please, i need help.
Thank you in advance.
Add it to the click event:
Button1.Enabled = False
Form2.ShowDialog()
Button1.Enabled = True
It should work.
:D thank you very much sir, it worked.
thank you very much sir, it worked.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.