Click here to Skip to main content
16,014,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: The current index in the foreach Pin
Libor Tinka27-Jul-05 11:44
Libor Tinka27-Jul-05 11:44 
GeneralRe: The current index in the foreach Pin
jan larsen27-Jul-05 20:38
jan larsen27-Jul-05 20:38 
GeneralRe: The current index in the foreach Pin
Patric_J28-Jul-05 4:47
Patric_J28-Jul-05 4:47 
GeneralRe: The current index in the foreach Pin
jan larsen28-Jul-05 8:02
jan larsen28-Jul-05 8:02 
Generaltextbox processed by enter key Pin
Anonymous27-Jul-05 10:20
Anonymous27-Jul-05 10:20 
GeneralRe: textbox processed by enter key Pin
Alomgir Miah27-Jul-05 10:30
Alomgir Miah27-Jul-05 10:30 
GeneralRe: textbox processed by enter key Pin
Anonymous27-Jul-05 10:48
Anonymous27-Jul-05 10:48 
GeneralRe: textbox processed by enter key Pin
jan larsen27-Jul-05 10:59
jan larsen27-Jul-05 10:59 
The Form control has a property named AcceptButton. Set this to reference your button. In the same breath: You can also connect a button to the ESC key by referencing it in Form.CancelButton.
A small example:
public class MyForm: Form
{
   private Button button;

   public MyForm()
   {
      button = new Button();
      this.Controls.Add(button);

      AcceptButton = button;
   }
}


"God doesn't play dice" - Albert Einstein

"God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr
GeneralRe: textbox processed by enter key Pin
Guffa27-Jul-05 11:00
Guffa27-Jul-05 11:00 
Generalomg, what a cry baby! Pin
Anonymous27-Jul-05 11:45
Anonymous27-Jul-05 11:45 
GeneralRe: omg, what a cry baby! Pin
Guffa27-Jul-05 23:59
Guffa27-Jul-05 23:59 
QuestionHow can I.. Pin
KORCARI27-Jul-05 9:54
KORCARI27-Jul-05 9:54 
AnswerRe: How can I.. Pin
Alomgir Miah27-Jul-05 10:32
Alomgir Miah27-Jul-05 10:32 
GeneralRegular Expression Pin
eggie527-Jul-05 9:47
eggie527-Jul-05 9:47 
GeneralRe: Regular Expression Pin
Dan Neely27-Jul-05 10:38
Dan Neely27-Jul-05 10:38 
GeneralRe: Regular Expression Pin
Werdna27-Jul-05 11:13
Werdna27-Jul-05 11:13 
GeneralInheritance instances Pin
zapap27-Jul-05 9:31
zapap27-Jul-05 9:31 
GeneralRe: Inheritance instances Pin
Patric_J28-Jul-05 5:10
Patric_J28-Jul-05 5:10 
GeneralRe: Inheritance instances Pin
zapap28-Jul-05 8:56
zapap28-Jul-05 8:56 
Generalcreating new desktop Pin
27-Jul-05 9:08
suss27-Jul-05 9:08 
GeneralRe: creating new desktop Pin
Sam 200627-Jul-05 14:20
Sam 200627-Jul-05 14:20 
Generalpass value from modal form Pin
Newbie_Toy27-Jul-05 8:56
Newbie_Toy27-Jul-05 8:56 
GeneralRe: pass value from modal form Pin
Libor Tinka27-Jul-05 9:11
Libor Tinka27-Jul-05 9:11 
GeneralColor Creation Pin
MarkMokris27-Jul-05 8:54
MarkMokris27-Jul-05 8:54 
GeneralRe: Color Creation Pin
Peter Vertes27-Jul-05 9:11
Peter Vertes27-Jul-05 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.