Click here to Skip to main content
15,887,442 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating a number of buttons with different onclick commands Pin
cocoonwls4-Nov-08 20:30
cocoonwls4-Nov-08 20:30 
AnswerRe: Creating a number of buttons with different onclick commands Pin
Pedram Behroozi4-Nov-08 22:32
Pedram Behroozi4-Nov-08 22:32 
GeneralRe: Creating a number of buttons with different onclick commands Pin
cocoonwls4-Nov-08 23:15
cocoonwls4-Nov-08 23:15 
GeneralRe: Creating a number of buttons with different onclick commands Pin
Pedram Behroozi5-Nov-08 0:21
Pedram Behroozi5-Nov-08 0:21 
GeneralRe: Creating a number of buttons with different onclick commands Pin
Matjaz-xyz5-Nov-08 5:02
Matjaz-xyz5-Nov-08 5:02 
QuestionHow to detect arrows key in key press event handler? Pin
cocoonwls4-Nov-08 19:12
cocoonwls4-Nov-08 19:12 
AnswerRe: How to detect arrows key in key press event handler? Pin
Pedram Behroozi4-Nov-08 19:33
Pedram Behroozi4-Nov-08 19:33 
AnswerRe: How to detect arrows key in key press event handler? [modified] Pin
Matjaz-xyz4-Nov-08 19:34
Matjaz-xyz4-Nov-08 19:34 
Simple. With ASCII Code.

lets take an example of pressing the keys in just form1:

if(e.KeyChar==37)<br />
                txtStatus.Text = "You've pressed the left arrow key.";<br />
            if(e.KeyChar==38)<br />
                txtStatus.Text = "You've pressed the up arrow key.";<br />
            if(e.KeyChar==39)<br />
                txtStatus.Text = "You've pressed the right arrow key.";

This is just a small example to get you started and so that u get to know the use of ASCII char tables.
Edit: Well it would be, if it would work... kinda forgot how i used this stuff.

Heres a good link on explanating the keypress control:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress(VS.71).aspx[^]

Greets,
Matjaž

Força Barça!

modified on Wednesday, November 5, 2008 1:54 AM

AnswerRe: How to detect arrows key in key press event handler? [modified] Pin
cocoonwls4-Nov-08 20:10
cocoonwls4-Nov-08 20:10 
GeneralRe: How to detect arrows key in key press event handler? Pin
Pedram Behroozi4-Nov-08 22:35
Pedram Behroozi4-Nov-08 22:35 
GeneralRe: How to detect arrows key in key press event handler? Pin
cocoonwls4-Nov-08 23:12
cocoonwls4-Nov-08 23:12 
AnswerRe: How to detect arrows key in key press event handler? Pin
dan!sh 4-Nov-08 22:03
professional dan!sh 4-Nov-08 22:03 
GeneralRe: How to detect arrows key in key press event handler? Pin
cocoonwls4-Nov-08 23:15
cocoonwls4-Nov-08 23:15 
GeneralRe: How to detect arrows key in key press event handler? Pin
dan!sh 5-Nov-08 0:16
professional dan!sh 5-Nov-08 0:16 
GeneralRe: How to detect arrows key in key press event handler? Pin
cocoonwls6-Nov-08 15:15
cocoonwls6-Nov-08 15:15 
AnswerRe: How to detect arrows key in key press event handler? Pin
vaynenick18-Jun-14 22:19
vaynenick18-Jun-14 22:19 
QuestionPictureBox and ThumbNail code causing Application to NOT close. Pin
swjam4-Nov-08 19:02
swjam4-Nov-08 19:02 
AnswerRe: PictureBox and ThumbNail code causing Application to NOT close. Pin
Simon P Stevens4-Nov-08 22:34
Simon P Stevens4-Nov-08 22:34 
Questionhow to remove whitespace(<p>&lt;\p&gt; )using stringbuilder in c#</p> Pin
raj2313624-Nov-08 18:49
raj2313624-Nov-08 18:49 
AnswerRe: how to remove whitespace(&lt;\p&gt; )using stringbuilder in c# Pin
leppie4-Nov-08 20:58
leppie4-Nov-08 20:58 
GeneralRe: how to remove whitespace(&lt;\p&gt; )using stringbuilder in c# Pin
raj2313624-Nov-08 21:49
raj2313624-Nov-08 21:49 
Questionhow To Add Product key Setup Pin
Piyush Vardhan Singh4-Nov-08 18:39
Piyush Vardhan Singh4-Nov-08 18:39 
AnswerRe: how To Add Product key Setup Pin
leppie4-Nov-08 20:58
leppie4-Nov-08 20:58 
QuestionRegisterHotKey help Pin
MeekLogic4-Nov-08 18:30
MeekLogic4-Nov-08 18:30 
QuestionSet a license screen in deployment of Window based project. Pin
sumit70344-Nov-08 17:36
sumit70344-Nov-08 17:36 

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.