Your visualforce page needs to have standardController of object that will have the custom button you're creating. Otherwise you can't see the visualforce page in content field thus can not create the button.
For instance if you want to create custom button for Account object your vf page should start like this;
Your visualforce page needs to have standardController of object that will have the custom button you're creating. Otherwise you can't see the visualforce page in content field thus can not create the button.
For instance if you want to create custom button for Account object your vf page should start like this;
It doesn't matter if an object is standard or custom. Only custom objects have __c appendix in their api name. You should just change the first line on your VF to this
For instance if you want to create custom button for Account object your vf page should start like this;
And your controller class constructor should look like this;
All Answers
For instance if you want to create custom button for Account object your vf page should start like this;
And your controller class constructor should look like this;
And change your controller's constructor method to this;
More info: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm