Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing mouse events over to the parent Pin
Frank Horn14-Jul-08 9:39
Frank Horn14-Jul-08 9:39 
QuestionC# vs Java Exception messages Pin
DwR13-Jul-08 5:40
DwR13-Jul-08 5:40 
AnswerRe: C# vs Java Exception messages Pin
Scott Dorman13-Jul-08 6:24
professionalScott Dorman13-Jul-08 6:24 
AnswerRe: C# vs Java Exception messages Pin
Vimalsoft(Pty) Ltd13-Jul-08 15:34
professionalVimalsoft(Pty) Ltd13-Jul-08 15:34 
QuestionGet information about serval given keys is pressed? Pin
panyl13-Jul-08 2:09
panyl13-Jul-08 2:09 
AnswerRe: Get information about serval given keys is pressed? Pin
Guffa13-Jul-08 9:16
Guffa13-Jul-08 9:16 
GeneralRe: Get information about serval given keys is pressed? Pin
panyl13-Jul-08 17:34
panyl13-Jul-08 17:34 
GeneralRe: Get information about serval given keys is pressed? Pin
Luc Pattyn13-Jul-08 18:19
sitebuilderLuc Pattyn13-Jul-08 18:19 
Hi,

you can get the instantaneous value of the modifier keys using Control.ModifierKeys
so you don't have to track those keys yourself (which you can hardly do correct, say e.g.
the CTRL key gets pushed down on one Control, then released above another Form).

BTW: don't convert to string for a logical test; instead of
if(e.KeysData.tostring().contains("Control"))...
you can do:
if ((e.KeysData & Keys.Control)==Keys.Control)...
or
if ((e.KeysData & Keys.Control)!=0)...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


QuestionComboBox Driven DataView FIlter Building Pin
Jammer13-Jul-08 0:54
Jammer13-Jul-08 0:54 
Questionhow to select specific row in DataGrid Pin
Metik13-Jul-08 0:05
Metik13-Jul-08 0:05 
AnswerRe: how to select specific row in DataGrid Pin
panyl13-Jul-08 2:26
panyl13-Jul-08 2:26 
AnswerRe: how to select specific row in DataGrid Pin
Vimalsoft(Pty) Ltd14-Jul-08 5:10
professionalVimalsoft(Pty) Ltd14-Jul-08 5:10 
QuestionSwitch vs If-else Pin
zeeShan anSari12-Jul-08 23:29
zeeShan anSari12-Jul-08 23:29 
AnswerRe: Switch vs If-else Pin
Scott Dorman13-Jul-08 2:24
professionalScott Dorman13-Jul-08 2:24 
AnswerRe: Switch vs If-else Pin
Joe Woodbury13-Jul-08 6:54
professionalJoe Woodbury13-Jul-08 6:54 
AnswerRe: Switch vs If-else Pin
Guffa13-Jul-08 9:13
Guffa13-Jul-08 9:13 
GeneralRe: Switch vs If-else Pin
Luc Pattyn13-Jul-08 12:14
sitebuilderLuc Pattyn13-Jul-08 12:14 
AnswerRe: Switch vs If-else Pin
Alan Balkany14-Jul-08 5:02
Alan Balkany14-Jul-08 5:02 
AnswerRe: Switch vs If-else Pin
PIEBALDconsult14-Jul-08 13:26
mvePIEBALDconsult14-Jul-08 13:26 
Questionbasic questions about web services development Pin
George_George12-Jul-08 23:24
George_George12-Jul-08 23:24 
AnswerRe: basic questions about web services development Pin
Scott Dorman13-Jul-08 2:29
professionalScott Dorman13-Jul-08 2:29 
GeneralRe: basic questions about web services development Pin
George_George13-Jul-08 2:37
George_George13-Jul-08 2:37 
GeneralRe: basic questions about web services development Pin
Scott Dorman13-Jul-08 2:56
professionalScott Dorman13-Jul-08 2:56 
GeneralRe: basic questions about web services development Pin
George_George13-Jul-08 3:00
George_George13-Jul-08 3:00 
GeneralRe: basic questions about web services development Pin
Scott Dorman13-Jul-08 4:05
professionalScott Dorman13-Jul-08 4:05 

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.