Click here to Skip to main content
15,912,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataColumn type Pin
denizmercan27-Jan-06 10:37
denizmercan27-Jan-06 10:37 
QuestionC# IrDA communication between Pocket-PC and MCP-2155. Pin
dannygilbert327-Jan-06 5:19
dannygilbert327-Jan-06 5:19 
AnswerRe: C# IrDA communication between Pocket-PC and MCP-2155. Pin
leppie27-Jan-06 7:14
leppie27-Jan-06 7:14 
QuestionVS c# Express - Deployment Project Pin
ranzask27-Jan-06 5:18
ranzask27-Jan-06 5:18 
AnswerRe: VS c# Express - Deployment Project Pin
Dave Kreskowiak27-Jan-06 5:35
mveDave Kreskowiak27-Jan-06 5:35 
GeneralRe: VS c# Express - Deployment Project Pin
ranzask27-Jan-06 8:51
ranzask27-Jan-06 8:51 
GeneralRe: VS c# Express - Deployment Project Pin
Dave Kreskowiak27-Jan-06 18:12
mveDave Kreskowiak27-Jan-06 18:12 
QuestionHow can I see if LeftShift or RightShift was pressed? Pin
adfgh7527-Jan-06 4:51
adfgh7527-Jan-06 4:51 
I'm developing a C# application where I need to find out if the left shift key has been pressed down or the right shift key.

I've tried to use the KeyDown event with the following code:

private void KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{

if(e.Control && (e.KeyCode == Keys.D1) && (e.KeyCode == Keys.LShiftKey))
{
//Do stuff here
}
}

I can read the keypresses but I can not see if the left shift key is pressed, only that a shift key was pressed. The e.KeyCode == Keys.LShiftKey doesn't work since it seems that KeyCode don't collect info about which shift that was pressed.


Any help appreciated! Thaks!

Andrew
AnswerRe: How can I see if LeftShift or RightShift was pressed? Pin
tarasn27-Jan-06 5:56
tarasn27-Jan-06 5:56 
GeneralRe: How can I see if LeftShift or RightShift was pressed? Pin
adfgh7530-Jan-06 9:12
adfgh7530-Jan-06 9:12 
QuestionThread synchronization question Pin
User 665827-Jan-06 3:56
User 665827-Jan-06 3:56 
AnswerRe: Thread synchronization question Pin
Guffa27-Jan-06 4:21
Guffa27-Jan-06 4:21 
GeneralRe: Thread synchronization question Pin
User 665827-Jan-06 6:58
User 665827-Jan-06 6:58 
AnswerRe: Thread synchronization question Pin
Guffa27-Jan-06 8:43
Guffa27-Jan-06 8:43 
GeneralRe: Thread synchronization question Pin
User 665827-Jan-06 10:42
User 665827-Jan-06 10:42 
QuestionShow Window Pin
jzb27-Jan-06 3:27
jzb27-Jan-06 3:27 
AnswerRe: Show Window Pin
Dave Kreskowiak27-Jan-06 5:26
mveDave Kreskowiak27-Jan-06 5:26 
AnswerRe: Show Window Pin
jzb27-Jan-06 18:07
jzb27-Jan-06 18:07 
QuestionRowUpdating Event Pin
lordofcsharp27-Jan-06 1:48
lordofcsharp27-Jan-06 1:48 
QuestionHelp Regarding Crystal Report Pin
Taimoor Mirza27-Jan-06 1:17
Taimoor Mirza27-Jan-06 1:17 
AnswerRe: Help Regarding Crystal Report Pin
ltxuan27-Jan-06 1:56
ltxuan27-Jan-06 1:56 
GeneralRe: Help Regarding Crystal Report Pin
Taimoor Mirza27-Jan-06 2:01
Taimoor Mirza27-Jan-06 2:01 
QuestionTooltip popup on pointing to text. As a plugin in VS .NET Pin
AlnKG27-Jan-06 0:56
AlnKG27-Jan-06 0:56 
QuestionGRAPHICS.FILLELLIPSE Pin
Greeky27-Jan-06 0:44
Greeky27-Jan-06 0:44 
AnswerRe: GRAPHICS.FILLELLIPSE Pin
leppie27-Jan-06 1:03
leppie27-Jan-06 1:03 

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.