Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetroForm.CancelButton() can't be set to a MetroButton #176

Open
biohazardxxx opened this issue Sep 11, 2024 · 0 comments
Open

MetroForm.CancelButton() can't be set to a MetroButton #176

biohazardxxx opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@biohazardxxx
Copy link

Bug explanation

this designer code does not work.

            private ReaLTaiizor.Controls.MetroButton btn_cancel;
            this.CancelButton = btn_cancel;

Last line gives:

CS0266 Cannot implicitly convert type 'ReaLTaiizor.Controls.MetroButton' to 'System.Windows.Forms.IButtonControl'. An explicit conversion exists (are you missing a cast?

Version

3.8.0.7

@biohazardxxx biohazardxxx added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant