Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data type list for WinAPI use Pin
Stephane Rodriguez.26-Sep-02 6:38
Stephane Rodriguez.26-Sep-02 6:38 
GeneralRe: Data type list for WinAPI use Pin
leppie26-Sep-02 7:12
leppie26-Sep-02 7:12 
Questionhow can i convert VC++6 's Resources files to C# 's Resources Pin
bclangren25-Sep-02 18:31
bclangren25-Sep-02 18:31 
AnswerRe: how can i convert VC++6 's Resources files to C# 's Resources Pin
Stephane Rodriguez.25-Sep-02 20:27
Stephane Rodriguez.25-Sep-02 20:27 
GeneralApplication.StartupPath.ToString(); Pin
Nick Parker25-Sep-02 17:25
protectorNick Parker25-Sep-02 17:25 
GeneralRe: Application.StartupPath.ToString(); Pin
James McCutcheon25-Sep-02 19:59
James McCutcheon25-Sep-02 19:59 
QuestionOutputDebugString or its ? Pin
imran_rafique25-Sep-02 12:18
imran_rafique25-Sep-02 12:18 
AnswerRe: OutputDebugString or its ? Pin
Paul Riley25-Sep-02 12:32
Paul Riley25-Sep-02 12:32 
GeneralAccessing Public Members of the Main Form from Another Form Pin
Waleed Eissa25-Sep-02 12:09
Waleed Eissa25-Sep-02 12:09 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
leppie25-Sep-02 12:26
leppie25-Sep-02 12:26 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
Waleed Eissa25-Sep-02 12:31
Waleed Eissa25-Sep-02 12:31 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
leppie25-Sep-02 12:53
leppie25-Sep-02 12:53 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
David Stone25-Sep-02 13:41
sitebuilderDavid Stone25-Sep-02 13:41 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
James T. Johnson25-Sep-02 16:02
James T. Johnson25-Sep-02 16:02 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
David Stone26-Sep-02 10:23
sitebuilderDavid Stone26-Sep-02 10:23 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
James T. Johnson26-Sep-02 12:02
James T. Johnson26-Sep-02 12:02 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
Waleed Eissa25-Sep-02 12:36
Waleed Eissa25-Sep-02 12:36 
GeneralDetecting Enter in a Single-line Textbox Pin
Waleed Eissa25-Sep-02 11:30
Waleed Eissa25-Sep-02 11:30 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
leppie25-Sep-02 12:16
leppie25-Sep-02 12:16 
Hi
See my post below about overriding and event for a button. Now all you will need to do is override the OnKeyDown Method.

protected override void OnKeyDown(KeyEventArgs e)
{
  if (e.KeyCode == Keys.Enter) //do your stuff
  else base.OnKeyDown(e);
}


This way you ensure that the Enter key was properly captured and not passed onto the base class aka TextBox.

Hope this help Smile | :)

Give them a chance! Do it for the kittens, dear God, the kittens!
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Waleed Eissa25-Sep-02 12:33
Waleed Eissa25-Sep-02 12:33 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Paul Riley25-Sep-02 12:57
Paul Riley25-Sep-02 12:57 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
leppie25-Sep-02 13:03
leppie25-Sep-02 13:03 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Waleed Eissa27-Sep-02 11:09
Waleed Eissa27-Sep-02 11:09 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Paul Riley27-Sep-02 12:32
Paul Riley27-Sep-02 12:32 
GeneralRe: Detecting Enter in a Single-line Textbox Pin
Waleed Eissa27-Sep-02 11:46
Waleed Eissa27-Sep-02 11:46 

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.