Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: That AppUpdater thing from GotDotNet Pin
Nathan Tran4-Dec-02 6:46
Nathan Tran4-Dec-02 6:46 
GeneralClientside UserControl Pin
Peter Kiss4-Dec-02 2:45
Peter Kiss4-Dec-02 2:45 
GeneralRe: Clientside UserControl Pin
John Rayner4-Dec-02 7:34
John Rayner4-Dec-02 7:34 
GeneralRe: Clientside UserControl - without success Pin
Peter Kiss6-Dec-02 5:09
Peter Kiss6-Dec-02 5:09 
GeneralRe: Clientside UserControl - without success 2 Pin
Peter Kiss7-Dec-02 5:33
Peter Kiss7-Dec-02 5:33 
GeneralRe: Clientside UserControl - without success 2 Pin
John Rayner7-Dec-02 12:45
John Rayner7-Dec-02 12:45 
Generalusing the KeyEventArgs.Handled prop Pin
djkno34-Dec-02 2:35
djkno34-Dec-02 2:35 
GeneralRe: using the KeyEventArgs.Handled prop Pin
Nathan Tran4-Dec-02 6:53
Nathan Tran4-Dec-02 6:53 
Hi,

This may help. For the KeyPress event of the control:

private void tbMsg_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if( e.KeyChar == ( char )13 ) // (char)13 is the return key.
{
// Tell the system that the keypress has been handled.
e.Handled = true;
// Do something. Here I'm simulating a button press.
button1_Click( this, e );
}
}

Nathan.
Generalconstraining somthing in a panel control Pin
djkno34-Dec-02 2:11
djkno34-Dec-02 2:11 
GeneralRe: constraining somthing in a panel control Pin
Kannan Kalyanaraman4-Dec-02 19:10
Kannan Kalyanaraman4-Dec-02 19:10 
GeneralRe: constraining somthing in a panel control Pin
djkno35-Dec-02 1:29
djkno35-Dec-02 1:29 
QuestionHow to programmatically trigger an event? Pin
yccheok3-Dec-02 16:11
yccheok3-Dec-02 16:11 
AnswerRe: How to programmatically trigger an event? Pin
Not Active3-Dec-02 16:27
mentorNot Active3-Dec-02 16:27 
AnswerRe: How to programmatically trigger an event? Pin
Jeff J3-Dec-02 16:27
Jeff J3-Dec-02 16:27 
AnswerRe: How to programmatically trigger an event? Pin
Anonymous4-Dec-02 7:21
Anonymous4-Dec-02 7:21 
GeneralDesign Patterns Pin
John Rayner3-Dec-02 7:40
John Rayner3-Dec-02 7:40 
GeneralRe: Design Patterns Pin
Chris Austin3-Dec-02 10:03
Chris Austin3-Dec-02 10:03 
GeneralRe: Design Patterns Pin
Jarrod Marshall4-Dec-02 7:42
Jarrod Marshall4-Dec-02 7:42 
GeneralUnicode Characters Pin
Jassim Rahma3-Dec-02 6:25
Jassim Rahma3-Dec-02 6:25 
GeneralRe: Unicode Characters Pin
Nick Parker3-Dec-02 8:08
protectorNick Parker3-Dec-02 8:08 
GeneralRemoting: Inter object communication. Pin
Nathan Tran3-Dec-02 6:07
Nathan Tran3-Dec-02 6:07 
GeneralRe: Remoting: Inter object communication. Pin
John Rayner3-Dec-02 8:04
John Rayner3-Dec-02 8:04 
GeneralRe: Remoting: Inter object communication. Pin
Nathan Tran3-Dec-02 10:41
Nathan Tran3-Dec-02 10:41 
GeneralRe: Remoting: Inter object communication. Pin
John Rayner4-Dec-02 0:33
John Rayner4-Dec-02 0:33 
GeneralRe: Remoting: Inter object communication. Pin
Nathan Tran4-Dec-02 6:59
Nathan Tran4-Dec-02 6:59 

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.