Put a public sub on the form that has the button. The sub would enable the button (or you could have it take a Boolean argument and either enable or disable based on that argument). Then, call the method just before you show the form.