Questions tagged [acceptbutton]

The AcceptButton along with the CancelButton are Form Properties that work only with buttons in C# Visual Studio. When these Form Properties are set, pressing enter or escape causes the click event to be executed.

.NET framework 4.6 api doc

35 questions
0
votes
1 answer

How do I set a toolstriptextbox accept button to call a function which a toolstripbutton calls?

I have a TextBox in my winforms. When a user starts typing in it I will like to set the AcceptButton property to call another function. However it is calling another function which is called by a Button in my ToolStrip. To elaborate, here is my code…
floormind
  • 1,868
  • 5
  • 31
  • 85
0
votes
3 answers

AcceptButton and CancelButton for Visual Studio 2010

Where are the Form Properties for the AcceptButton and CancelButton for Visual Studio 2010? I'd like to set my btnClose as CancelButton and I'd like to set my btnEnter as my AcceptButton.
Kiviuq
  • 45
  • 2
  • 15
-1
votes
1 answer

Visual C# Designating a Windows Forms LABEL as the Accept Button

I try to Designate the Accept Button property from my form to the click event of a label. If I would have used a button this wouldn't have been a problem but I have chosen to use a label for UI reasons. Unfortunaly the Accept Button property only…
call-me
  • 686
  • 9
  • 18
-1
votes
2 answers

Enter button automatically clicks button without being initialized (C#/Visual Studio)

My program compiles and runs fine as long as you only use the mouse to navigate. I noticed that when I hit "Enter" it automatically registers as clicking one of my buttons in the window. I have started playing around with the "AcceptButton"…
Andy
  • 1
  • 2
  • 2
-2
votes
2 answers

C# Picture Box as Accept Button of a Form

Is there a way to set a picture box as the accept button of a winform? I tried to set it up on the form properties but it doesn't show up. Thanks for the answers.
Vnz Dichoso
  • 182
  • 1
  • 2
  • 11
1 2
3