I need to have a Button
on a UserControl
(not Form
) in a windows application to respond to \"Enter\" hit, the way a button which is set as
If you set the Modifier property on the button to "Public", you can use the button as AcceptButton on the form. Unfortunately you cannot do it design-time with the properties window of Visual Studio, but you can do it in code.
public Form1()
{
InitializeComponent();
this.AcceptButton = userControl11.button1;
}