Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strange GDI+ error Pin
Heath Stewart31-Mar-04 3:46
protectorHeath Stewart31-Mar-04 3:46 
GeneralRe: Strange GDI+ error Pin
Stephane David31-Mar-04 10:00
Stephane David31-Mar-04 10:00 
GeneralRe: Strange GDI+ error Pin
Heath Stewart31-Mar-04 10:02
protectorHeath Stewart31-Mar-04 10:02 
GeneralRe: Strange GDI+ error Pin
leppie31-Mar-04 6:21
leppie31-Mar-04 6:21 
General.NET Remoting Pin
Prasad Anand30-Mar-04 18:29
Prasad Anand30-Mar-04 18:29 
GeneralRe: .NET Remoting Pin
Heath Stewart31-Mar-04 3:42
protectorHeath Stewart31-Mar-04 3:42 
GeneralKey Press Pin
DucLinh30-Mar-04 14:54
DucLinh30-Mar-04 14:54 
GeneralRe: Key Press Pin
Charlie Williams30-Mar-04 16:02
Charlie Williams30-Mar-04 16:02 
duclinh wrote:
if ((Control.ModifierKeys & Keys.Enter) == Keys.Enter)

The Enter key is not a modifier key, so this will never be true. Here's what you're looking for:
if(e.KeyChar == (char)Keys.Enter)

However, you don't even need to do that. Just set your form's AcceptButton to be btOK and the button will be "clicked" when Enter is pressed in your form.

Charlie

if(!curlies){ return; }
Generalreading from sqldatareader Pin
pgraeve30-Mar-04 14:39
pgraeve30-Mar-04 14:39 
GeneralRe: reading from sqldatareader Pin
Heath Stewart30-Mar-04 16:42
protectorHeath Stewart30-Mar-04 16:42 
QuestionWhy do my graphics still flicker? Pin
adonisv30-Mar-04 14:30
adonisv30-Mar-04 14:30 
AnswerRe: Why do my graphics still flicker? Pin
Roman Rodov30-Mar-04 14:37
Roman Rodov30-Mar-04 14:37 
GeneralRe: Why do my graphics still flicker? Pin
adonisv30-Mar-04 14:40
adonisv30-Mar-04 14:40 
GeneralRe: Why do my graphics still flicker? Pin
Heath Stewart30-Mar-04 16:44
protectorHeath Stewart30-Mar-04 16:44 
GeneralRe: Why do my graphics still flicker? Pin
adonisv31-Mar-04 16:36
adonisv31-Mar-04 16:36 
AnswerRe: Why do my graphics still flicker? Pin
blackthunder00130-Mar-04 14:41
blackthunder00130-Mar-04 14:41 
GeneralRe: Why do my graphics still flicker? Pin
adonisv30-Mar-04 14:59
adonisv30-Mar-04 14:59 
AnswerRe: Why do my graphics still flicker? Pin
Anonymous30-Mar-04 20:11
Anonymous30-Mar-04 20:11 
GeneralI call Invalidate() Pin
adonisv31-Mar-04 16:43
adonisv31-Mar-04 16:43 
Questionhandling multiple connections? Pin
Anonymous30-Mar-04 12:21
Anonymous30-Mar-04 12:21 
AnswerRe: handling multiple connections? Pin
Heath Stewart30-Mar-04 12:54
protectorHeath Stewart30-Mar-04 12:54 
GeneralIDisposable Pin
blackthunder00130-Mar-04 10:01
blackthunder00130-Mar-04 10:01 
GeneralRe: IDisposable Pin
Heath Stewart30-Mar-04 10:17
protectorHeath Stewart30-Mar-04 10:17 
GeneralRe: IDisposable Pin
blackthunder00130-Mar-04 14:32
blackthunder00130-Mar-04 14:32 
GeneralRe: IDisposable Pin
Heath Stewart30-Mar-04 16:24
protectorHeath Stewart30-Mar-04 16:24 

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.