Kaden Nelson
Kaden Nelson

Reputation: 45

Why is my visual basic button greyed out?

Everytime I create a visual basic button and place it on form it is greyed out. I have no idea and I'm sorry if this is a stupid question but I've googled everywhere and I can't find a solution to why my button is greyed out. The same thing occurs when I create a label too, I can't click it.

Upvotes: 0

Views: 2180

Answers (1)

Dionysis Nt.
Dionysis Nt.

Reputation: 955

In button's properties 'disabled' option must be turned on.

Another way to enable it is in your code

button1.enabled=true

Upvotes: 2

Related Questions