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

C#

 
GeneralDataRowCollection.InsertAt method is driving me nuts Pin
Radoslav Bielik25-Jul-03 7:04
Radoslav Bielik25-Jul-03 7:04 
GeneralRe: Interop Pin
Daniel Turini25-Jul-03 7:50
Daniel Turini25-Jul-03 7:50 
GeneralRe: Interop Pin
leppie25-Jul-03 8:05
leppie25-Jul-03 8:05 
GeneralRe: Interop Pin
leppie25-Jul-03 10:43
leppie25-Jul-03 10:43 
GeneralRe: Interop Pin
J. Dunlap25-Jul-03 11:06
J. Dunlap25-Jul-03 11:06 
GeneralRe: Interop Pin
Daniel Turini25-Jul-03 11:21
Daniel Turini25-Jul-03 11:21 
QuestionHow do i check if the Left Shift key was pressed? Pin
CyberKewl25-Jul-03 2:09
CyberKewl25-Jul-03 2:09 
AnswerRe: How do i check if the Left Shift key was pressed? Pin
dynamic25-Jul-03 3:19
dynamic25-Jul-03 3:19 
both shift keys ( the one on the left of the keyboard and the one on the right ) hold the same value "16" so no way to tell , but if you wish to catch events such as the up / down arrows etc... you can do something like this :
C#:
<font color="blue">private</font> <font color="blue">void</font> Form1_Load(<font color="blue">object</font> sender, System.EventArgs e) <br>     { <br>         <font color="#0000FF">this</font>.KeyPreview=<font color="#0000FF">true</font>; <br>     } <br><font color="DarkGreen"> // set keypreview on. <br> ///////////////////</font> <br> <font color="#0000FF">protected override</font> <font color="blue">bool</font> ProcessKeyPreview(<font color="#0000FF">ref</font> System.Windows.Forms.Message m) <br> { <br> 	<font color="#0000FF">switch</font> (m.WParam.ToInt32()) <br> 	{ <br> 	<font color="#0000FF">case</font> 38: <font color="#008000">// up arrow key </font><br>                 MessageBox.Show("you clicked UP!"); <br> 		<font color="#0000FF">break</font>; <br> 	<font color="#0000FF">case</font> 40: <font color="#008000">// down arrow key </font><br>                 MessageBox.Show("you clicked DOWN!"); <br> 		<font color="#0000FF">break</font>; <br> 	<font color="#0000FF">case</font> 37: <font color="#008000">// left arrow key </font><br> 		MessageBox.Show("you clicked LEFT!"); <br> 		<font color="#0000FF">break</font>; <br> 	<font color="#0000FF">case</font> 39: <font color="#008000">// right arror key </font><br> 		MessageBox.Show("you clicked RIGHT!"); <br> 		<font color="#0000FF">break</font>; <br> 	} <br> 	<font color="#0000FF">return true</font>; <br> } 



hope it helps.



Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br>     Select Case</font> twins<br>         <font color="blue">Case</font> "Gender" <br>             <font color="blue">Return</font> "Two Girls" <br>     <font color="blue">End Select <br> End Function</font> <br> 


Generalchecking time values Pin
draco_iii25-Jul-03 1:17
draco_iii25-Jul-03 1:17 
GeneralRe: checking time values Pin
Rocky Moore25-Jul-03 1:59
Rocky Moore25-Jul-03 1:59 
GeneralHash Table elements order Pin
michalJ25-Jul-03 0:23
michalJ25-Jul-03 0:23 
GeneralRe: Hash Table elements order Pin
Erick Sgarbi25-Jul-03 0:27
Erick Sgarbi25-Jul-03 0:27 
GeneralRe: Hash Table elements order Pin
Rocky Moore25-Jul-03 2:04
Rocky Moore25-Jul-03 2:04 
GeneralRe: Hash Table elements order Pin
Julian Bucknall [MSFT]25-Jul-03 8:30
Julian Bucknall [MSFT]25-Jul-03 8:30 
GeneralGetProcesses Pin
vikramlinux24-Jul-03 20:14
vikramlinux24-Jul-03 20:14 
GeneralRe: GetProcesses Pin
Alex Korchemniy25-Jul-03 9:18
Alex Korchemniy25-Jul-03 9:18 
GeneralRe: GetProcesses Pin
vikramlinux25-Jul-03 19:19
vikramlinux25-Jul-03 19:19 
GeneralWriting to a List box in a dirrerent form... Pin
eggie524-Jul-03 12:26
eggie524-Jul-03 12:26 
GeneralRe: Writing to a List box in a dirrerent form... Pin
Furty24-Jul-03 15:01
Furty24-Jul-03 15:01 
GeneralRe: Writing to a List box in a dirrerent form... Pin
eggie524-Jul-03 18:39
eggie524-Jul-03 18:39 
GeneralRe: Writing to a List box in a dirrerent form... Pin
eggie524-Jul-03 18:41
eggie524-Jul-03 18:41 
GeneralRe: Writing to a List box in a dirrerent form... Pin
eggie525-Jul-03 17:05
eggie525-Jul-03 17:05 
QuestionHow can you tell if an element in a datagrid has the focus? Pin
work_to_live24-Jul-03 12:05
work_to_live24-Jul-03 12:05 
AnswerRe: How can you tell if an element in a datagrid has the focus? Pin
work_to_live24-Jul-03 13:31
work_to_live24-Jul-03 13:31 
General2 projects 1 class Pin
albean24-Jul-03 10:45
albean24-Jul-03 10:45 

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.