M
M
Maxim2017-08-26 12:30:52
.NET
Maxim, 2017-08-26 12:30:52

How to create your own button, C# WinForms?

How to create a button with your add. functionality?
Inheritance from UserComponent and from Button does not help.
dd0abec932f34854a7d99c2ec72cc1a4.PNG
This window appeared.
I didn't change anything in the button. In the constructor, it looks like a button.

public partial class DemoButton: UserControl
    {
        public DemoButton()
        {
            InitializeComponent();
        }
    }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2017-08-26
@Griboks

I don't know about you, but the custom element really helps me. In fact, it all depends on additional functions.

V
Vanik Khachatryan, 2017-08-29
@VaniXac

If we are talking about design, then WPF.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question