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

C#

 
QuestionScroll a Treeview in Code? Pin
selden0312-Jul-04 6:29
selden0312-Jul-04 6:29 
AnswerRe: Scroll a Treeview in Code? Pin
Jay Shankar12-Jul-04 20:54
Jay Shankar12-Jul-04 20:54 
QuestionConstructing a setup project with variable paths not working??? Pin
LongRange.Shooter12-Jul-04 5:13
LongRange.Shooter12-Jul-04 5:13 
QuestionCan not catch KeyDown message from RETURN key Pin
Roman Muntyanu12-Jul-04 3:49
Roman Muntyanu12-Jul-04 3:49 
AnswerRe: Can not catch KeyDown message from RETURN key Pin
Peter Vertes12-Jul-04 4:22
Peter Vertes12-Jul-04 4:22 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Nick Parker12-Jul-04 4:56
protectorNick Parker12-Jul-04 4:56 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu12-Jul-04 6:28
Roman Muntyanu12-Jul-04 6:28 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Mike Dimmick12-Jul-04 12:51
Mike Dimmick12-Jul-04 12:51 
Is it a CFormView? CFormView calls IsDialogMessage, which assumes that you're trying to press the default button on the form, or raises WM_COMMAND for IDOK if there is no default.

IsDialogMessage first probes the control with focus to see if it wants to handle this character. It does this by sending the control the WM_GETDLGCODE message. IIRC, the control has to return a code including the flag DLGC_WANTALLKEYS or DLGC_WANTMESSAGE in order to swallow the RETURN keypress. You'll need to experiment a little.

In your C# code, you'll probably have to override WndProc. The reason it works on a C# form is that the C# form manager doesn't use the pre-existing Windows dialog manager code - it's a new implementation.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu12-Jul-04 14:31
Roman Muntyanu12-Jul-04 14:31 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu14-Jul-04 1:55
Roman Muntyanu14-Jul-04 1:55 
Generalblock an IP Pin
chuchichäschtli12-Jul-04 2:28
chuchichäschtli12-Jul-04 2:28 
GeneralRe: block an IP Pin
Heath Stewart12-Jul-04 3:04
protectorHeath Stewart12-Jul-04 3:04 
Generalrequest socket Pin
shahrokh nabavi12-Jul-04 1:31
shahrokh nabavi12-Jul-04 1:31 
GeneralRe: request socket Pin
Heath Stewart12-Jul-04 4:07
protectorHeath Stewart12-Jul-04 4:07 
Generalrequest socket Pin
shahrokh nabavi12-Jul-04 1:29
shahrokh nabavi12-Jul-04 1:29 
GeneralA serious bug of list view in compact framework Pin
ting66812-Jul-04 0:18
ting66812-Jul-04 0:18 
GeneralRe: A serious bug of list view in compact framework Pin
Mike Dimmick12-Jul-04 12:43
Mike Dimmick12-Jul-04 12:43 
GeneralRe: A serious bug of list view in compact framework Pin
ting66812-Jul-04 18:29
ting66812-Jul-04 18:29 
GeneralRe: A serious bug of list view in compact framework Pin
ting66812-Jul-04 21:01
ting66812-Jul-04 21:01 
General2 questions Pin
bouli11-Jul-04 23:37
bouli11-Jul-04 23:37 
GeneralRe: 2 questions Pin
Mike Dimmick11-Jul-04 23:56
Mike Dimmick11-Jul-04 23:56 
GeneralRe: 2 questions Pin
bouli12-Jul-04 0:25
bouli12-Jul-04 0:25 
GeneralRe: 2 questions Pin
Heath Stewart12-Jul-04 3:14
protectorHeath Stewart12-Jul-04 3:14 
GeneralRe: 2 questions Pin
bouli12-Jul-04 3:36
bouli12-Jul-04 3:36 
GeneralRe: 2 questions Pin
Heath Stewart12-Jul-04 4:02
protectorHeath Stewart12-Jul-04 4:02 

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.